freedreno/a6xx: samplerBuffer fixes
authorRob Clark <robdclark@gmail.com>
Wed, 20 Feb 2019 22:33:23 +0000 (17:33 -0500)
committerRob Clark <robdclark@gmail.com>
Wed, 20 Feb 2019 23:50:08 +0000 (18:50 -0500)
commit323958908e5f98d7d9c7cee0797ad365adb4e19e
tree1791ecc310d726b3a17d8689725e89ff30ee01da
parent50dd773a2d15570944d3955bb851b46ac345cdf4
freedreno/a6xx: samplerBuffer fixes

Use the 'UNK31' bit (which should probably be called 'BUFFER') for
samplerBuffer case, which increases the size of supported buffer
texture beyond 2^15 elements.

Also need to fix the 2nd coord injected to handle the tex instructions
that take integer coords.

Fixes dEQP-GLES31.functional.texture.texture_buffer.render.as_fragment_texture.buffer_size_131071
and similar

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/freedreno/ir3/ir3_compiler_nir.c
src/gallium/drivers/freedreno/a6xx/fd6_texture.c
src/gallium/drivers/freedreno/freedreno_screen.c