mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-31 15:40:24 +01:00
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> (cherry picked from commitd8ed4f14e6)
This commit is contained in:
parent
dd47ebcc19
commit
ef95ed1e2e
2 changed files with 6 additions and 4 deletions
|
|
@ -1714,7 +1714,7 @@
|
|||
"description": "freedreno/ir3: Fix tess/geom asan error",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "ee0ee2a3174775531dd6cc7663940e2acf48b7b8",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -5951,9 +5951,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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue