v3dv: fix sRGB blending workaround
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 15 Apr 2021 11:47:58 +0000 (13:47 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 16 Apr 2021 06:05:59 +0000 (06:05 +0000)
commit1cf36797bf9d63b33c405d85ce720dcd5e75a47c
treef245c5eeb90fb6862ee6169f3f11a785204946f7
parent08ea0076641a40bb24e8e3975671f41b9ecda6fa
v3dv: fix sRGB blending workaround

This workaround needs to set a flag in the current job but it was
implemented at pipeline binding time, which can happen outside a
render pass. Move it to the pre-draw handler, where it belongs.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4645
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10255>
src/broadcom/vulkan/v3dv_cmd_buffer.c