Re: [Mesa-dev] first attempt at shader stencil export

2010-10-04 Thread Roland Scheidegger
On 04.10.2010 16:43, Roland Scheidegger wrote: > On 03.10.2010 13:14, Dave Airlie wrote: No this won't work as you can't read a z24s8 format a i32 (not the same typeless group, number of components needs to be the same as well as all components need to have same number of bits).

Re: [Mesa-dev] first attempt at shader stencil export

2010-10-04 Thread Roland Scheidegger
On 03.10.2010 13:14, Dave Airlie wrote: >>> No this won't work as you can't read a z24s8 format a i32 (not the same >>> typeless group, number of components needs to be the same as well as all >>> components need to have same number of bits). >>> But the format list suggests this is possible. For z

Re: [Mesa-dev] first attempt at shader stencil export

2010-10-03 Thread Dave Airlie
>> >> No this won't work as you can't read a z24s8 format a i32 (not the same >> typeless group, number of components needs to be the same as well as all >> components need to have same number of bits). >> But the format list suggests this is possible. For z24s8 you could >> presumably use DXGI_FOR

Re: [Mesa-dev] first attempt at shader stencil export

2010-09-30 Thread Alex Deucher
On Thu, Sep 30, 2010 at 1:43 PM, José Fonseca wrote: > On Thu, 2010-09-30 at 10:19 -0700, Roland Scheidegger wrote: >> On 30.09.2010 16:44, José Fonseca wrote: >> > On Thu, 2010-09-30 at 07:32 -0700, Brian Paul wrote: >> >> On 09/30/2010 12:41 AM, Dave Airlie wrote: >> >>> some background: >> >>>

Re: [Mesa-dev] first attempt at shader stencil export

2010-09-30 Thread José Fonseca
On Thu, 2010-09-30 at 10:19 -0700, Roland Scheidegger wrote: > On 30.09.2010 16:44, José Fonseca wrote: > > On Thu, 2010-09-30 at 07:32 -0700, Brian Paul wrote: > >> On 09/30/2010 12:41 AM, Dave Airlie wrote: > >>> some background: > >>> > >>> so on r600g, the only way to directly write to the sten

Re: [Mesa-dev] first attempt at shader stencil export

2010-09-30 Thread Roland Scheidegger
On 30.09.2010 16:44, José Fonseca wrote: > On Thu, 2010-09-30 at 07:32 -0700, Brian Paul wrote: >> On 09/30/2010 12:41 AM, Dave Airlie wrote: >>> some background: >>> >>> so on r600g, the only way to directly write to the stencil is via the >>> shader, using a transfer would require an extra step t

Re: [Mesa-dev] first attempt at shader stencil export

2010-09-30 Thread José Fonseca
On Thu, 2010-09-30 at 07:44 -0700, José Fonseca wrote: > On Thu, 2010-09-30 at 07:32 -0700, Brian Paul wrote: > > On 09/30/2010 12:41 AM, Dave Airlie wrote: > > > some background: > > > > > > so on r600g, the only way to directly write to the stencil is via the > > > shader, using a transfer would

Re: [Mesa-dev] first attempt at shader stencil export

2010-09-30 Thread José Fonseca
On Thu, 2010-09-30 at 07:32 -0700, Brian Paul wrote: > On 09/30/2010 12:41 AM, Dave Airlie wrote: > > some background: > > > > so on r600g, the only way to directly write to the stencil is via the > > shader, using a transfer would require an extra step to flush the DS > > buffer out via the pipe a

Re: [Mesa-dev] first attempt at shader stencil export

2010-09-30 Thread Brian Paul
On 09/30/2010 12:41 AM, Dave Airlie wrote: some background: so on r600g, the only way to directly write to the stencil is via the shader, using a transfer would require an extra step to flush the DS buffer out via the pipe again to make it useable by the hw as a DS buffer. So using the current g

Re: [Mesa-dev] first attempt at shader stencil export

2010-09-30 Thread Keith Whitwell
On Wed, 2010-09-29 at 23:41 -0700, Dave Airlie wrote: > some background: > > so on r600g, the only way to directly write to the stencil is via the > shader, using a transfer would require an extra step to flush the DS > buffer out via the pipe again to make it useable by the hw as a DS > buffer. S

[Mesa-dev] first attempt at shader stencil export

2010-09-29 Thread Dave Airlie
some background: so on r600g, the only way to directly write to the stencil is via the shader, using a transfer would require an extra step to flush the DS buffer out via the pipe again to make it useable by the hw as a DS buffer. So using the current gallium stencil draw would be a major overhead