mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 13:00:09 +01:00
anv: add assertion that tes and tcs data is non-null
It doesn't make any sense ot have TCS but not TES (or vice versa), but
coverity doesn't realize that. Add an assertion that they are both
non-null before we start reading them.
Fixes: 50fd669294 ("anv: prep work for separate tessellation shaders")
CID: 1665360
CID: 1665327
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37266>
This commit is contained in:
parent
ecfce9f9ad
commit
08a3497223
1 changed files with 1 additions and 0 deletions
|
|
@ -2495,6 +2495,7 @@ cmd_buffer_flush_gfx_runtime_state(struct anv_gfx_dynamic_state *hw_state,
|
|||
if ((tcs_dynamic || tes_dynamic) &&
|
||||
((gfx->dirty & (ANV_CMD_DIRTY_HS | ANV_CMD_DIRTY_DS)) ||
|
||||
BITSET_TEST(dyn->dirty, MESA_VK_DYNAMIC_TS_PATCH_CONTROL_POINTS))) {
|
||||
assert(tcs_prog_data != NULL && tes_prog_data != NULL);
|
||||
SET(TESS_CONFIG, tess_config,
|
||||
intel_tess_config(dyn->ts.patch_control_points,
|
||||
tcs_prog_data->instances,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue