summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/link_atomics.cpp
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-11-08 11:34:10 +1100
committerTimothy Arceri <[email protected]>2017-11-09 12:07:48 +1100
commit9c33533586476693a197b7179552d140d54f23f2 (patch)
treead0f9eb55ef91e918f3f9cbc6efa42a99cd2d481 /src/compiler/glsl/link_atomics.cpp
parentcf05bb506a075c9e3b8a3c374b928ff0367c49b2 (diff)
glsl: use the correct parent when allocating program data members
Cc: "17.2 17.3" <[email protected]> Reviewed-by: Tapani Pälli <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/compiler/glsl/link_atomics.cpp')
-rw-r--r--src/compiler/glsl/link_atomics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/glsl/link_atomics.cpp b/src/compiler/glsl/link_atomics.cpp
index d26e62a35b3..d4a6eed639f 100644
--- a/src/compiler/glsl/link_atomics.cpp
+++ b/src/compiler/glsl/link_atomics.cpp
@@ -207,7 +207,7 @@ link_assign_atomic_counter_resources(struct gl_context *ctx,
active_atomic_buffer *abs =
find_active_atomic_counters(ctx, prog, &num_buffers);
- prog->data->AtomicBuffers = rzalloc_array(prog, gl_active_atomic_buffer,
+ prog->data->AtomicBuffers = rzalloc_array(prog->data, gl_active_atomic_buffer,
num_buffers);
prog->data->NumAtomicBuffers = num_buffers;
@@ -270,7 +270,7 @@ link_assign_atomic_counter_resources(struct gl_context *ctx,
struct gl_program *gl_prog = prog->_LinkedShaders[j]->Program;
gl_prog->info.num_abos = num_atomic_buffers[j];
gl_prog->sh.AtomicBuffers =
- rzalloc_array(prog, gl_active_atomic_buffer *,
+ rzalloc_array(gl_prog, gl_active_atomic_buffer *,
num_atomic_buffers[j]);
unsigned intra_stage_idx = 0;