diff options
author | Caio Marcelo de Oliveira Filho <[email protected]> | 2019-06-04 13:38:36 -0700 |
---|---|---|
committer | Caio Marcelo de Oliveira Filho <[email protected]> | 2019-06-11 17:57:37 -0700 |
commit | f346b277d14c5ff103e2698f82d9914e5cfd0667 (patch) | |
tree | 21591fbb721668d4d90eac3653ec324756b3c213 /src/gallium/drivers/iris/iris_state.c | |
parent | 7b43362f2930c87e2a3489026823cf2591aec8e3 (diff) |
iris: Create binding table slot for num_work_groups only when needed
Reviewed-by: Sagar Ghuge <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/gallium/drivers/iris/iris_state.c')
-rw-r--r-- | src/gallium/drivers/iris/iris_state.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 9cab4625b81..23f8d290368 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -4141,7 +4141,8 @@ iris_populate_binding_table(struct iris_context *ice, return; } - if (stage == MESA_SHADER_COMPUTE) { + if (stage == MESA_SHADER_COMPUTE && + shader->bt.used_mask[IRIS_SURFACE_GROUP_CS_WORK_GROUPS]) { /* surface for gl_NumWorkGroups */ struct iris_state_ref *grid_data = &ice->state.grid_size; struct iris_state_ref *grid_state = &ice->state.grid_surf_state; |