iris/compute: Push subgroup-id
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:

committed by
Kenneth Graunke

parent
229450a2a6
commit
b35c8f2182
@@ -1058,6 +1058,19 @@ iris_update_compiled_compute_shader(struct iris_context *ice)
|
||||
UNUSED bool success = iris_compile_cs(ice, ish, &key);
|
||||
}
|
||||
|
||||
void
|
||||
iris_fill_cs_push_const_buffer(struct brw_cs_prog_data *cs_prog_data,
|
||||
uint32_t *dst)
|
||||
{
|
||||
struct brw_stage_prog_data *prog_data = &cs_prog_data->base;
|
||||
assert(cs_prog_data->push.total.size > 0);
|
||||
assert(cs_prog_data->push.cross_thread.size == 0);
|
||||
assert(cs_prog_data->push.per_thread.dwords == 1);
|
||||
assert(prog_data->param[0] == BRW_PARAM_BUILTIN_SUBGROUP_ID);
|
||||
for (unsigned t = 0; t < cs_prog_data->threads; t++)
|
||||
dst[8 * t] = t;
|
||||
}
|
||||
|
||||
void
|
||||
iris_init_program_functions(struct pipe_context *ctx)
|
||||
{
|
||||
|
Reference in New Issue
Block a user