Mesa (master): glsl: when cloning a variable, copy the depth layout too

Marek Olšák mareko at kemper.freedesktop.org
Sat Nov 19 15:47:24 UTC 2011


Module: Mesa
Branch: master
Commit: 90be99427a04a36973f9e3d19161065e1c5177b3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=90be99427a04a36973f9e3d19161065e1c5177b3

Author: Marek Olšák <maraeo at gmail.com>
Date:   Sat Nov 19 14:30:13 2011 +0100

glsl: when cloning a variable, copy the depth layout too

This fixes AMD_conservative_depth.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/glsl/ir_clone.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/glsl/ir_clone.cpp b/src/glsl/ir_clone.cpp
index e8ac9fb..c63615c 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) {




More information about the mesa-commit mailing list