freedreno/a6xx: Generalize pointers in struct fd6_pipe_sampler_view
authorKristian H. Kristensen <hoegsberg@google.com>
Wed, 7 Oct 2020 21:33:57 +0000 (21:33 +0000)
committerMarge Bot <eric+marge@anholt.net>
Thu, 8 Oct 2020 09:37:14 +0000 (09:37 +0000)
commit11563da8fa852c19c45b90a6a8427ea79008fd80
tree561e99a40848fc329f2b5e1f95e723923cf56f7b
parent826a10255f5f8d444f0318f3e36ff616b41b5d15
freedreno/a6xx: Generalize pointers in struct fd6_pipe_sampler_view

Add resource pointers ptr1 and ptr2 and offsets offset1 and offset2,
and just emit relocs if the pointers are non-NULL.  This lets us move
a little more logic to the CSO building.

Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6693>
src/gallium/drivers/freedreno/a6xx/fd6_emit.c
src/gallium/drivers/freedreno/a6xx/fd6_texture.c
src/gallium/drivers/freedreno/a6xx/fd6_texture.h