diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index 989f32057fe..6deccb712e3 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -190,15 +190,18 @@ get_max_vbs(const struct intel_device_info *devinfo) { #define ANV_TRTT_L1_NULL_TILE_VAL 0 #define ANV_TRTT_L1_INVALID_TILE_VAL 1 -/* The binding table entry id disabled, the shader can write to it and the +/* The binding table entry is disabled, the shader can write to it and the * driver should use a null surface state so that writes are discarded. */ #define ANV_COLOR_OUTPUT_DISABLED (0xff) -/* The binding table entry id unused, the shader does not write to it and the +/* The binding table entry is unused, the shader does not write to it and the * driver can leave whatever surface state was used before. Transitioning * to/from this entry does not require render target cache flush. */ #define ANV_COLOR_OUTPUT_UNUSED (0xfe) +/* The binding table entry is unknown. + */ +#define ANV_COLOR_OUTPUT_UNKNOWN (0xfd) static inline uint64_t align_down_npot_u64(uint64_t v, uint64_t a) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index df04e16f616..73298dc8513 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -6772,6 +6772,9 @@ void genX(CmdBeginRendering)( */ gfx->dirty |= ANV_CMD_DIRTY_ALL_SHADERS(cmd_buffer->device); + memset(gfx->color_output_mapping, ANV_COLOR_OUTPUT_UNKNOWN, + sizeof(gfx->color_output_mapping)); + #if GFX_VER >= 11 if (render_target_change && cmd_buffer->device->physical->rt_change_needs_flush) { /* The PIPE_CONTROL command description says: