freedreno/ir3: Fix tess/geom asan error

Fixes: ee0ee2a317 ("ir3: don't sync every TCS/GEOM block")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34989>
This commit is contained in:
Rob Clark
2025-05-14 15:07:37 -07:00
committed by Marge Bot
parent 3f70433ff0
commit d8ed4f14e6
2 changed files with 5 additions and 7 deletions
@@ -240,10 +240,6 @@ KHR-GL46.texture_lod_basic.lod_selection,Fail
KHR-GL46.texture_lod_bias.texture_lod_bias_all,Fail
# a630-gles-asan
asan-dEQP-GLES31.functional.debug.negative_coverage.callbacks.tessellation.invalid_primitive_mode,Crash
asan-dEQP-GLES31.functional.debug.negative_coverage.get_error.tessellation.invalid_primitive_mode,Crash
asan-dEQP-GLES31.functional.debug.negative_coverage.log.tessellation.invalid_primitive_mode,Crash
asan-dEQP-GLES31.functional.state_query.program.tesselation_shader_state_get_programiv,Crash
asan-dEQP-GLES31.functional.texture.border_clamp.range_clamp.linear_float_color,Fail
# GL tests above, Vulkan tests below
+5 -3
View File
@@ -5887,9 +5887,11 @@ ir3_compile_shader_nir(struct ir3_compiler *compiler,
*/
if (so->type == MESA_SHADER_TESS_CTRL || so->type == MESA_SHADER_GEOMETRY) {
struct ir3_block *first_block = ir3_start_block(ir);
struct ir3_instruction *first_instr = list_first_entry(
&first_block->instr_list, struct ir3_instruction, node);
first_instr->flags |= IR3_INSTR_SS | IR3_INSTR_SY;
if (!list_is_empty(&first_block->instr_list)) {
struct ir3_instruction *first_instr = list_first_entry(
&first_block->instr_list, struct ir3_instruction, node);
first_instr->flags |= IR3_INSTR_SS | IR3_INSTR_SY;
}
}
if (ctx->compiler->gen >= 7 && so->type == MESA_SHADER_COMPUTE) {