tgsi: add a TXQS opcode to retrieve the number of texture samples
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Roland Scheidegger <sroland@vmware.com> Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
This commit is contained in:
@@ -960,7 +960,6 @@ XXX doesn't look like most of the opcodes really belong here.
|
||||
For components which don't return a resource dimension, their value
|
||||
is undefined.
|
||||
|
||||
|
||||
.. math::
|
||||
|
||||
lod = src0.x
|
||||
@@ -973,6 +972,17 @@ XXX doesn't look like most of the opcodes really belong here.
|
||||
|
||||
dst.w = texture\_levels(unit)
|
||||
|
||||
|
||||
.. opcode:: TXQS - Texture Samples Query
|
||||
|
||||
This retrieves the number of samples in the texture, and stores it
|
||||
into the x component. The other components are undefined.
|
||||
|
||||
.. math::
|
||||
|
||||
dst.x = texture\_samples(unit)
|
||||
|
||||
|
||||
.. opcode:: TG4 - Texture Gather
|
||||
|
||||
As per ARB_texture_gather, gathers the four texels to be used in a bi-linear
|
||||
|
Reference in New Issue
Block a user