freedreno/a5xx: port handling of PIPE_BUFFER textures from a6xx
authorDanylo Piliaiev <dpiliaiev@igalia.com>
Mon, 8 Mar 2021 16:31:09 +0000 (18:31 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 10 Mar 2021 17:10:44 +0000 (17:10 +0000)
commit8e6ed9948eb410fb9df441affc4ff289e4129a49
tree9676e373c7d37548c79b77d782d247362c184ff4
parentd968995c67f5e3a48e49015184f9ea1f143251ec
freedreno/a5xx: port handling of PIPE_BUFFER textures from a6xx

Otherwise, we won't be able to use OPC_GETBUF to get their size.

After this change we also could get rid of the hack for OPC_GETSIZE
which scaled the size for texture buffers.

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9391>
src/freedreno/ir3/ir3_compiler_nir.c
src/freedreno/registers/adreno/a5xx.xml
src/gallium/drivers/freedreno/a5xx/fd5_image.c
src/gallium/drivers/freedreno/a5xx/fd5_texture.c