[Mesa-dev] [PATCH 00/10] i965: Separate VS/FS sampler tables.

Ian Romanick idr at freedesktop.org
Fri Aug 16 21:52:51 PDT 2013


On 08/14/2013 06:55 PM, Kenneth Graunke wrote:
> Currently, i965 uploads a single SAMPLER_STATE table shared across all
> shader stages (VS, FS).  This series splits it out, uploading a unique
> table for each stage.
>
> I think this may actually fix some bugs with vertex texturing:
> Piglit's fragment-and-vertex-texturing uses two textures (unit 0 and
> unit 1), one in each shader.  vs->SamplersUsed and fs->SamplersUsed
> both only have one bit set (bit 0), but vs->SamplerUnits and
> fs->SamplerUnits map them differently (units 0 and 1).  The existing
> code would select fs->SamplerUnits[0], ignoring vs->SamplerUnits[0].
> If the two textures had, say, different wrap modes, this would probably
> illustrate the problem.
>
> It also just seems like a good idea.  The border color code in particular
> is much nicer after this change, as it's not directly tied to brw->wm
> any longer (even though textures can be used in all shader stages).
>
> No observed Piglit changes on Ivybridge.

Could we try to create a piglit test to tickle the issue identified above?

> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev



More information about the mesa-dev mailing list