gallium/auxiliary/vl: Only map the shader constants buffer in render
authorDavid Rosca <nowrep@gmail.com>
Sat, 2 Sep 2023 08:00:09 +0000 (10:00 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 26 Sep 2023 13:03:46 +0000 (13:03 +0000)
commitf7083ae94ba8db9e160688b2046e9c6bcf20b09e
treee49e1f71dead76edc6c2b6771ba6adb9877b15f5
parent40487b8e146c865b077457fe7f0b4ac3cdcb3f67
gallium/auxiliary/vl: Only map the shader constants buffer in render

Don't map the buffer in vl_compositor_set_csc_matrix.
This avoids mapping the buffer twice with compute shaders.

Acked-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Thong Thai <thong.thai@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25258>
src/gallium/auxiliary/vl/vl_compositor.c
src/gallium/auxiliary/vl/vl_compositor.h
src/gallium/auxiliary/vl/vl_compositor_cs.c
src/gallium/auxiliary/vl/vl_compositor_gfx.c