From d96bfb160f8863bc2a164adbdd4d997422d8acb1 Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Fri, 22 Jul 2022 17:34:03 -0700 Subject: [PATCH] intel/brw/xe2+: Update encoding of FB write extended descriptor. Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/compiler/brw_lower_logical_sends.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/intel/compiler/brw_lower_logical_sends.cpp b/src/intel/compiler/brw_lower_logical_sends.cpp index 723fe49a24c..4e66d0d0aca 100644 --- a/src/intel/compiler/brw_lower_logical_sends.cpp +++ b/src/intel/compiler/brw_lower_logical_sends.cpp @@ -486,7 +486,14 @@ lower_fb_write_logical_send(const fs_builder &bld, fs_inst *inst, } uint32_t ex_desc = 0; - if (devinfo->ver >= 11) { + if (devinfo->ver >= 20) { + ex_desc = inst->target << 21 | + (key->nr_color_regions == 0) << 20 | + (src0_alpha.file != BAD_FILE) << 15 | + (src_stencil.file != BAD_FILE) << 14 | + (src_depth.file != BAD_FILE) << 13 | + (sample_mask.file != BAD_FILE) << 12; + } else if (devinfo->ver >= 11) { /* Set the "Render Target Index" and "Src0 Alpha Present" fields * in the extended message descriptor, in lieu of using a header. */