[Mesa-dev] [PATCH 1/6] tgsi: add TXQ support.

Keith Whitwell keithw at vmware.com
Thu Aug 25 06:43:39 PDT 2011


On Thu, 2011-08-25 at 07:28 -0600, Brian Paul wrote:
> How would the TXQ instruction be implemented for a hardware driver?
> 
> Is there really a HW GPU instruction that returns the size of a texture?

Yes, that's correct.

> Otherwise, this seems like something we could implement in the state 
> tracker by putting the texture size into a constant buffer slot.  Then 
> we'd have it for all drivers.

I think that's a good fallback for hardware that's missing this
capability, but DX10+ hardware should be expected to have it.

Keith



More information about the mesa-dev mailing list