[Mesa-dev] is_tex bit for TGSI sampling instructions

Zack Rusin zackr at vmware.com
Thu Aug 25 13:40:08 PDT 2011


On Thursday, August 25, 2011 04:30:26 PM Christoph Bumiller wrote:
> Putting the resource type in the resource declaration instead of the
> instruction isn't necessarily smart considering indirect resource access
> ... I just hope the person implementing it remembers to provide a base
> array address so we can identify the type.
> 
> ( think of something like: LOAD DST[0], SRC[0], RES[ADDR[0].x - 4] )
> what's the type of resource -4 ?

I don't think that's a meaningful objection. What's the sampler of SAMP[-4]? 
What's the source register of SRC[-4] ? In other words bug in a shader is a 
bug in a shader. Also indirect addressing on resources seems silly.


More information about the mesa-dev mailing list