glsl: when cloning a variable, copy the depth layout too
authorMarek Olšák <maraeo@gmail.com>
Sat, 19 Nov 2011 13:30:13 +0000 (14:30 +0100)
committerMarek Olšák <maraeo@gmail.com>
Sat, 19 Nov 2011 15:46:59 +0000 (16:46 +0100)
This fixes AMD_conservative_depth.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/ir_clone.cpp

index e8ac9fbe456074560358d6ef0e9727c65b7fb133..c63615c7eb32ffefd58f979413261d2db1666484 100644 (file)
@@ -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) {