[Mesa-dev] [PATCH 0/2] mesa/gallium: add NV_texture_barrier

Marek Olšák maraeo at gmail.com
Thu Mar 10 21:05:40 PST 2011


Hi,

these 2 patches add GL_NV_texture_barrier to Mesa and Gallium,
respectively. The extension can be used for programmable
blending, where the same texture can be bound as both a sampler
and renderbuffer. The same feature exists in Direct10 and
the entry point is:

VOID APIENTRY ResourceReadAfterWriteHazard(
  __in  D3D10DDI_HDEVICE hDevice,
  __in  D3D10DDI_HRESOURCE hResource
)

I have chosen the same name for Gallium:

void (*resource_read_after_write_hazard)(struct pipe_context *,
                                         struct pipe_resource *)

The function is documented in the second patch.
There is a new piglit test too, called blending-in-shader.
I only have working r300g support, but I may add softpipe
if needed.

Please review.

Best regards
Marek

PS: If I push this, I will also regenerate the glapi files.


More information about the mesa-dev mailing list