[Mesa-dev] [PATCH 1/6] tgsi: add TXQ support.
Ian Romanick
idr at freedesktop.org
Thu Aug 25 07:09:00 PDT 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 08/25/2011 06:28 AM, 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?
>
> 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've thought about this too, but TXQ is a required feature of GL3 / DX10
hardware. I think the right way to handle it on hardware that doesn't
do it natively would be a lowering pass at the GLSL IR level.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAk5WV3wACgkQX1gOwKyEAw9j0gCbBsn/SyGUB66chFkAKr04nVIC
9CwAmgPQTt3RKPfJce+T9Hnf7pFiQnAM
=36x8
-----END PGP SIGNATURE-----
More information about the mesa-dev
mailing list