mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-20 22:08:10 +02:00
When the hardware doesn't natively support 32-bit predication, the driver has a fallback which allocates a 64-bit predicate to the upload BO in order to copy the original value. But when conditional rendering is enabled in the stateCommandBuffer which is used by preprocess() and the execute() is recorded also in the stateCommandBuffer. If the preprocess() is recorded in a different cmdbuf which is submitted before the cmdbuf that contains execute(), the fallback (ie. alloc + COPY_DATA) will be performed after. This would cause the predicate value to be always 0. To fix that, keep track of the user predication VA which is the only VA that needs to be used by DGC because it reads 32-bit from the shader. This fixes a very weird corner case with vkd3d-proton. Cc: mesa-stable Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13143 Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34953> |
||
|---|---|---|
| .. | ||
| radv_meta.c | ||
| radv_meta.h | ||
| radv_meta_astc_decode.c | ||
| radv_meta_blit.c | ||
| radv_meta_blit2d.c | ||
| radv_meta_buffer.c | ||
| radv_meta_bufimage.c | ||
| radv_meta_clear.c | ||
| radv_meta_copy.c | ||
| radv_meta_copy_vrs_htile.c | ||
| radv_meta_dcc_retile.c | ||
| radv_meta_decompress.c | ||
| radv_meta_etc_decode.c | ||
| radv_meta_fast_clear.c | ||
| radv_meta_fmask_copy.c | ||
| radv_meta_fmask_expand.c | ||
| radv_meta_resolve.c | ||
| radv_meta_resolve_cs.c | ||
| radv_meta_resolve_fs.c | ||