From 1b9248e761d7ff04415326de18f8fc2468bcbcd3 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 13 May 2022 16:54:26 -0500 Subject: [PATCH] intel/fs: Copy color_outputs_valid into wm_prog_data Fixes: 36ee2fd61c8f ("anv: Implement the basic form of VK_EXT_transform_feedback") Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/compiler/brw_compiler.h | 1 + src/intel/compiler/brw_fs.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/intel/compiler/brw_compiler.h b/src/intel/compiler/brw_compiler.h index 0caeafa8a3f..ef4c8650ede 100644 --- a/src/intel/compiler/brw_compiler.h +++ b/src/intel/compiler/brw_compiler.h @@ -868,6 +868,7 @@ struct brw_wm_prog_data { /** @} */ } binding_table; + uint8_t color_outputs_written; uint8_t computed_depth_mode; bool computed_stencil; diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index c97c6819a3d..c02faf65021 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -9774,6 +9774,7 @@ brw_nir_populate_wm_prog_data(const nir_shader *shader, key->emit_alpha_test; prog_data->uses_omask = !key->ignore_sample_mask_out && (shader->info.outputs_written & BITFIELD64_BIT(FRAG_RESULT_SAMPLE_MASK)); + prog_data->color_outputs_written = key->color_outputs_valid; prog_data->computed_depth_mode = computed_depth_mode(shader); prog_data->computed_stencil = shader->info.outputs_written & BITFIELD64_BIT(FRAG_RESULT_STENCIL);