Re: [Mesa3d-dev] ARB draw buffers + texenv program

2010-04-13 Thread Luca Barbieri
On nv30/nv40 support for patching fragment programs is already necessary (constants must be patched in as immediates), and this can be handled by just patching the end of the fragment program to include a variable number of instructions to copy a temp to COLOR[x]. It's possible that there could

Re: [Mesa3d-dev] ARB draw buffers + texenv program

2010-04-13 Thread Christoph Bumiller
On 04/13/2010 08:07 AM, Luca Barbieri wrote: On nv30/nv40 support for patching fragment programs is already necessary (constants must be patched in as immediates), and this can be handled by just patching the end of the fragment program to include a variable number of instructions to copy a

Re: [Mesa3d-dev] ARB draw buffers + texenv program

2010-04-13 Thread Roland Scheidegger
On 13.04.2010 02:52, Dave Airlie wrote: On Tue, Apr 6, 2010 at 2:00 AM, Brian Paul bri...@vmware.com wrote: Dave Airlie wrote: Just going down the r300g piglit failures and noticed fbo-drawbuffers failed, I've no idea if this passes on Intel hw, but it appears the texenvprogram really needs

Re: [Mesa3d-dev] ARB draw buffers + texenv program

2010-04-13 Thread Corbin Simpson
On Tue, Apr 13, 2010 at 6:42 AM, Roland Scheidegger srol...@vmware.com wrote: On 13.04.2010 02:52, Dave Airlie wrote: On Tue, Apr 6, 2010 at 2:00 AM, Brian Paul bri...@vmware.com wrote: Dave Airlie wrote: Just going down the r300g piglit failures and noticed fbo-drawbuffers failed, I've no

Re: [Mesa3d-dev] ARB draw buffers + texenv program

2010-04-13 Thread Alex Deucher
On Tue, Apr 13, 2010 at 2:21 PM, Corbin Simpson mostawesomed...@gmail.com wrote: On Tue, Apr 13, 2010 at 6:42 AM, Roland Scheidegger srol...@vmware.com wrote: On 13.04.2010 02:52, Dave Airlie wrote: On Tue, Apr 6, 2010 at 2:00 AM, Brian Paul bri...@vmware.com wrote: Dave Airlie wrote: Just

Re: [Mesa3d-dev] ARB draw buffers + texenv program

2010-04-13 Thread Dave Airlie
On Tue, Apr 13, 2010 at 11:42 PM, Roland Scheidegger srol...@vmware.com wrote: On 13.04.2010 02:52, Dave Airlie wrote: On Tue, Apr 6, 2010 at 2:00 AM, Brian Paul bri...@vmware.com wrote: Dave Airlie wrote: Just going down the r300g piglit failures and noticed fbo-drawbuffers failed, I've no

Re: [Mesa3d-dev] ARB draw buffers + texenv program

2010-04-13 Thread Roland Scheidegger
On 13.04.2010 20:28, Alex Deucher wrote: On Tue, Apr 13, 2010 at 2:21 PM, Corbin Simpson mostawesomed...@gmail.com wrote: On Tue, Apr 13, 2010 at 6:42 AM, Roland Scheidegger srol...@vmware.com wrote: On 13.04.2010 02:52, Dave Airlie wrote: On Tue, Apr 6, 2010 at 2:00 AM, Brian Paul

Re: [Mesa3d-dev] ARB draw buffers + texenv program

2010-04-13 Thread Dave Airlie
On Wed, Apr 14, 2010 at 8:33 AM, Roland Scheidegger srol...@vmware.com wrote: On 13.04.2010 20:28, Alex Deucher wrote: On Tue, Apr 13, 2010 at 2:21 PM, Corbin Simpson mostawesomed...@gmail.com wrote: On Tue, Apr 13, 2010 at 6:42 AM, Roland Scheidegger srol...@vmware.com wrote: On 13.04.2010

Re: [Mesa3d-dev] ARB draw buffers + texenv program

2010-04-13 Thread Roland Scheidegger
On 14.04.2010 00:38, Dave Airlie wrote: On Wed, Apr 14, 2010 at 8:33 AM, Roland Scheidegger srol...@vmware.com wrote: On 13.04.2010 20:28, Alex Deucher wrote: On Tue, Apr 13, 2010 at 2:21 PM, Corbin Simpson mostawesomed...@gmail.com wrote: On Tue, Apr 13, 2010 at 6:42 AM, Roland Scheidegger

Re: [Mesa3d-dev] ARB draw buffers + texenv program

2010-04-12 Thread Dave Airlie
On Tue, Apr 6, 2010 at 2:00 AM, Brian Paul bri...@vmware.com wrote: Dave Airlie wrote: Just going down the r300g piglit failures and noticed fbo-drawbuffers failed, I've no idea if this passes on Intel hw, but it appears the texenvprogram really needs to understand the draw buffers. The

Re: [Mesa3d-dev] ARB draw buffers + texenv program

2010-04-12 Thread Dave Airlie
(3) Should gl_FragColor be aliased to gl_FragData[0]?      RESOLUTION: No.  A shader should write either gl_FragColor, or      gl_FragData[n], but not both.      Writing to gl_FragColor will write to all draw buffers specified      with DrawBuffersARB. So I was really just masking the

Re: [Mesa3d-dev] ARB draw buffers + texenv program

2010-04-07 Thread Dave Airlie
On Tue, Apr 6, 2010 at 10:47 PM, Keith Whitwell kei...@vmware.com wrote: On Fri, 2010-04-02 at 20:43 -0700, Dave Airlie wrote: Just going down the r300g piglit failures and noticed fbo-drawbuffers failed, I've no idea if this passes on Intel hw, but it appears the texenvprogram really needs

Re: [Mesa3d-dev] ARB draw buffers + texenv program

2010-04-06 Thread Keith Whitwell
On Fri, 2010-04-02 at 20:43 -0700, Dave Airlie wrote: Just going down the r300g piglit failures and noticed fbo-drawbuffers failed, I've no idea if this passes on Intel hw, but it appears the texenvprogram really needs to understand the draw buffers. The attached patch fixes it here for me on

Re: [Mesa3d-dev] ARB draw buffers + texenv program

2010-04-05 Thread Brian Paul
Dave Airlie wrote: Just going down the r300g piglit failures and noticed fbo-drawbuffers failed, I've no idea if this passes on Intel hw, but it appears the texenvprogram really needs to understand the draw buffers. The attached patch fixes it here for me on r300g anyone want to test this on

Re: [Mesa3d-dev] ARB draw buffers + texenv program

2010-04-05 Thread Brian Paul
Brian Paul wrote: Dave Airlie wrote: Just going down the r300g piglit failures and noticed fbo-drawbuffers failed, I've no idea if this passes on Intel hw, but it appears the texenvprogram really needs to understand the draw buffers. The attached patch fixes it here for me on r300g anyone

[Mesa3d-dev] ARB draw buffers + texenv program

2010-04-02 Thread Dave Airlie
Just going down the r300g piglit failures and noticed fbo-drawbuffers failed, I've no idea if this passes on Intel hw, but it appears the texenvprogram really needs to understand the draw buffers. The attached patch fixes it here for me on r300g anyone want to test this on Intel with the piglit