summaryrefslogtreecommitdiff
path: root/src/compiler/nir/nir_print.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/nir/nir_print.c')
-rw-r--r--src/compiler/nir/nir_print.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c
index 363a8e4aeb1..649d1de224d 100644
--- a/src/compiler/nir/nir_print.c
+++ b/src/compiler/nir/nir_print.c
@@ -1605,12 +1605,12 @@ nir_print_shader_annotated(nir_shader *shader, FILE *fp,
if (shader->info.label)
fprintf(fp, "label: %s\n", shader->info.label);
- if (gl_shader_stage_is_compute(shader->info.stage)) {
+ if (gl_shader_stage_uses_workgroup(shader->info.stage)) {
fprintf(fp, "workgroup-size: %u, %u, %u%s\n",
- shader->info.cs.workgroup_size[0],
- shader->info.cs.workgroup_size[1],
- shader->info.cs.workgroup_size[2],
- shader->info.cs.workgroup_size_variable ? " (variable)" : "");
+ shader->info.workgroup_size[0],
+ shader->info.workgroup_size[1],
+ shader->info.workgroup_size[2],
+ shader->info.workgroup_size_variable ? " (variable)" : "");
fprintf(fp, "shared-size: %u\n", shader->info.shared_size);
}