From: Ian Romanick <ian.d.roman...@intel.com>

No change Valgrind massif results for a trimmed apitrace of dota2.

Signed-off-by: Ian Romanick <ian.d.roman...@intel.com>
---
 src/glsl/ir.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/glsl/ir.h b/src/glsl/ir.h
index ee42857..5c565ff 100644
--- a/src/glsl/ir.h
+++ b/src/glsl/ir.h
@@ -88,12 +88,13 @@ enum ir_node_type {
  */
 class ir_instruction : public exec_node {
 private:
-   enum ir_node_type ir_type;
+   uint8_t ir_type;
 
 public:
    inline enum ir_node_type get_ir_type() const
    {
-      return this->ir_type;
+      STATIC_ASSERT(ir_type_max < 256);
+      return (enum ir_node_type) this->ir_type;
    }
 
    /**
-- 
1.8.1.4

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to