aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/shaderapi.c
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2014-01-08 11:59:28 -0800
committerPaul Berry <[email protected]>2014-02-05 09:04:20 -0800
commit28ce604b7f2b08b967b6a27051ecab04adaed575 (patch)
tree1f8ab0b86ae7a056d7c18d9c8e365643731e49a4 /src/mesa/main/shaderapi.c
parent0fa74e848fd11c71bb70ea0a69650944e4f07571 (diff)
mesa/cs: Handle compute shader local size during linking.
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/mesa/main/shaderapi.c')
-rw-r--r--src/mesa/main/shaderapi.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
index 987c48aff34..571e13ca9b9 100644
--- a/src/mesa/main/shaderapi.c
+++ b/src/mesa/main/shaderapi.c
@@ -1846,6 +1846,13 @@ _mesa_copy_linked_program_data(gl_shader_stage type,
dst_gp->UsesEndPrimitive = src->Geom.UsesEndPrimitive;
}
break;
+ case MESA_SHADER_COMPUTE: {
+ struct gl_compute_program *dst_cp = (struct gl_compute_program *) dst;
+ int i;
+ for (i = 0; i < 3; i++)
+ dst_cp->LocalSize[i] = src->Comp.LocalSize[i];
+ }
+ break;
default:
break;
}