diff options
author | Rob Clark <[email protected]> | 2015-06-08 13:20:30 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2015-06-21 07:52:22 -0400 |
commit | cb258c1dec1ff348d508a6b02fbc9aa11eb9f829 (patch) | |
tree | 8a42dd85f4c4de3719a65f502e0cbabd7edf370c /src/gallium | |
parent | 93379748f7e4f5ab22040cdb7a4cccdcfb7954c1 (diff) |
glsl_to_tgsi: add SVIEW decl support
Freedreno needs sampler type information to deal with int/uint textures.
To accomplish this, start creating sampler-view declarations, as
suggested here:
http://lists.freedesktop.org/archives/mesa-dev/2014-November/071583.html
create a sampler-view with index matching the sampler, to encode the
texture type (ie. SINT/UINT/FLOAT). Ie:
DCL SVIEW[n], 2D, UINT
DCL SAMP[n]
TEX OUT[1], IN[1], SAMP[n]
For tgsi texture instructions which do not take an explicit SVIEW
argument, the SVIEW index is implied by the SAMP index.
Signed-off-by: Rob Clark <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium')
0 files changed, 0 insertions, 0 deletions