aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-11-19 14:30:13 +0100
committerMarek Olšák <[email protected]>2011-11-19 16:46:59 +0100
commit90be99427a04a36973f9e3d19161065e1c5177b3 (patch)
tree5bb56197b482687e6e00c6b627423bd3bfafe7cb /src/glsl
parent038a7dfcaaa7a8e5e108e247b2ffd786b3b015a3 (diff)
glsl: when cloning a variable, copy the depth layout too
This fixes AMD_conservative_depth. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/ir_clone.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/ir_clone.cpp b/src/glsl/ir_clone.cpp
index e8ac9fbe456..c63615c7eb3 100644
--- a/src/glsl/ir_clone.cpp
+++ b/src/glsl/ir_clone.cpp
@@ -51,6 +51,7 @@ ir_variable::clone(void *mem_ctx, struct hash_table *ht) const
var->pixel_center_integer = this->pixel_center_integer;
var->explicit_location = this->explicit_location;
var->has_initializer = this->has_initializer;
+ var->depth_layout = this->depth_layout;
var->num_state_slots = this->num_state_slots;
if (this->state_slots) {