diff options
Diffstat (limited to 'src/amd/vulkan/radv_meta_fmask_expand.c')
-rw-r--r-- | src/amd/vulkan/radv_meta_fmask_expand.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/amd/vulkan/radv_meta_fmask_expand.c b/src/amd/vulkan/radv_meta_fmask_expand.c index 5bf7f26e659..d0c3e149ffc 100644 --- a/src/amd/vulkan/radv_meta_fmask_expand.c +++ b/src/amd/vulkan/radv_meta_fmask_expand.c @@ -35,9 +35,9 @@ build_fmask_expand_compute_shader(struct radv_device *device, int samples) nir_builder b = nir_builder_init_simple_shader(MESA_SHADER_COMPUTE, NULL, "meta_fmask_expand_cs-%d", samples); - b.shader->info.cs.workgroup_size[0] = 8; - b.shader->info.cs.workgroup_size[1] = 8; - b.shader->info.cs.workgroup_size[2] = 1; + b.shader->info.workgroup_size[0] = 8; + b.shader->info.workgroup_size[1] = 8; + b.shader->info.workgroup_size[2] = 1; nir_variable *input_img = nir_variable_create(b.shader, nir_var_uniform, type, "s_tex"); input_img->data.descriptor_set = 0; @@ -51,8 +51,8 @@ build_fmask_expand_compute_shader(struct radv_device *device, int samples) nir_ssa_def *invoc_id = nir_load_local_invocation_id(&b); nir_ssa_def *wg_id = nir_load_workgroup_id(&b, 32); nir_ssa_def *block_size = - nir_imm_ivec4(&b, b.shader->info.cs.workgroup_size[0], b.shader->info.cs.workgroup_size[1], - b.shader->info.cs.workgroup_size[2], 0); + nir_imm_ivec4(&b, b.shader->info.workgroup_size[0], b.shader->info.workgroup_size[1], + b.shader->info.workgroup_size[2], 0); nir_ssa_def *global_id = nir_iadd(&b, nir_imul(&b, wg_id, block_size), invoc_id); nir_ssa_def *layer_id = nir_channel(&b, wg_id, 2); |