iris: Set program key fields for MCS
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 11 Dec 2018 06:03:14 +0000 (22:03 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:12 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_program.c

index eb341e94fdd6d9bddef47fd0ab792d3f999af09f..f069f3669896324c4bfb45cf069762b6588a2ad0 100644 (file)
 #include "intel/compiler/brw_nir.h"
 #include "iris_context.h"
 
-#define ALL_SAMPLERS_XYZW .tex.swizzles[0 ... MAX_SAMPLERS - 1] = 0x688
-#define KEY_INIT .program_string_id = ish->program_id, ALL_SAMPLERS_XYZW
+#define KEY_INIT_NO_ID                            \
+   .tex.swizzles[0 ... MAX_SAMPLERS - 1] = 0x688, \
+   .tex.compressed_multisample_layout_mask = ~0,  \
+   .tex.msaa_16 = ~0
+#define KEY_INIT .program_string_id = ish->program_id, KEY_INIT_NO_ID
 
 static unsigned
 get_new_program_id(struct iris_screen *screen)
@@ -742,7 +745,7 @@ iris_update_compiled_tcs(struct iris_context *ice)
    const struct shader_info *tes_info =
       iris_get_shader_info(ice, MESA_SHADER_TESS_EVAL);
    struct brw_tcs_prog_key key = {
-      ALL_SAMPLERS_XYZW,
+      KEY_INIT_NO_ID,
       .program_string_id = tcs ? tcs->program_id : 0,
       .tes_primitive_mode = tes_info->tess.primitive_mode,
       .input_vertices = ice->state.vertices_per_patch,