[Mesa-dev] [PATCH] i965: Use the actual hardware g0 register for texel offset setup.

Eric Anholt eric at anholt.net
Fri Oct 28 11:36:57 PDT 2011


On Thu, 27 Oct 2011 10:49:14 -0700, Kenneth Graunke <kenneth at whitecape.org> wrote:
> The idea here is to set up the message header with the Sampler State
> pointer which the hardware provides as part of the PS Thread Payload in
> register g0.
> 
> Unfortunately, the existing code
> 
>    fs_reg(GRF, 0, BRW_REGISTER_TYPE_UD))
> 
> actually references "virtual GRF 0" rather than the hardware g0.  This
> is just some arbitrary GRF temporary which will get register allocated.
> 
> So, we ended up setting up the header with garbage.
> 
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>

Reviewed-by: Eric Anholt <eric at anholt.net>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20111028/8294078c/attachment.pgp>


More information about the mesa-dev mailing list