anv: ensure CFE_STATE is emitted for ray tracing pipelines

Fixes sporadic failures in dEQP-VK.robustness.robustness2.*.rgen

Fixes: ecb709c853 ("anv: only emit CFE_STATE when scratch space increases")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9382

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24206>
(cherry picked from commit 75990e5564)
This commit is contained in:
Iván Briano 2023-07-17 21:37:10 -07:00 committed by Eric Engestrom
parent cc0bd5d8ab
commit 8104b4a92b
2 changed files with 3 additions and 1 deletions

View file

@ -211,7 +211,7 @@
"description": "anv: ensure CFE_STATE is emitted for ray tracing pipelines",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "ecb709c85351c8c127a1cd3577c74d6b2b0b706a"
},

View file

@ -6503,6 +6503,8 @@ cmd_buffer_trace_rays(struct anv_cmd_buffer *cmd_buffer,
}
}
genX(cmd_buffer_ensure_cfe_state)(cmd_buffer, pipeline->scratch_size);
const struct brw_cs_prog_data *cs_prog_data =
brw_cs_prog_data_const(device->rt_trampoline->prog_data);
struct brw_cs_dispatch_info dispatch =