From: Jason Ekstrand Date: Wed, 2 Sep 2020 18:48:51 +0000 (-0500) Subject: iris: Re-emit push constants if we have a varying workgroup size X-Git-Url: https://git.libre-soc.org/?p=mesa.git;a=commitdiff_plain;h=bbaa62e4e156012f05d2ddd9b19610d6465b62e7 iris: Re-emit push constants if we have a varying workgroup size Fixes: 33c61eb2f10526 "iris: Implement ARB_compute_variable_group_size" Reviewed-by: Kenneth Graunke Part-of: --- diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 341cdbdb208..cf36dfa81d9 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -6700,7 +6700,8 @@ iris_upload_gpgpu_walker(struct iris_context *ice, } /* TODO: Combine subgroup-id with cbuf0 so we can push regular uniforms */ - if (stage_dirty & IRIS_STAGE_DIRTY_CS) { + if ((stage_dirty & IRIS_STAGE_DIRTY_CS) || + cs_prog_data->local_size[0] == 0 /* Variable local group size */) { uint32_t curbe_data_offset = 0; assert(cs_prog_data->push.cross_thread.dwords == 0 && cs_prog_data->push.per_thread.dwords == 1 &&