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

Kenneth Graunke kenneth at whitecape.org
Thu Aug 25 07:14:18 PDT 2011


On 08/25/2011 07:00 AM, Dave Airlie wrote:
> On Thu, Aug 25, 2011 at 2:43 PM, Keith Whitwell <keithw at vmware.com> wrote:
>> 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.
> 
> I can't see us caring really, its part of GLSL1.30 which pretty muhc
> means GL3.0, which pretty much means DX10.
> 
> Dave.

I agree with Dave.  There's just not much point.



More information about the mesa-dev mailing list