Mesa (master): st/mesa: Switch glsl_to_tgsi_instruction to the non-zeroing allocator.

Francisco Jerez currojerez at kemper.freedesktop.org
Wed Oct 2 00:42:34 UTC 2013


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

Author: Francisco Jerez <currojerez at riseup.net>
Date:   Mon Sep 30 10:54:48 2013 -0700

st/mesa: Switch glsl_to_tgsi_instruction to the non-zeroing allocator.

All member variables of glsl_to_tgsi_instruction are already being
initialized from its implicitly defined constructor, it's not
necessary to use rzalloc to allocate its memory.

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

---

 src/mesa/state_tracker/st_glsl_to_tgsi.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
index 2bc6623..a5d0b84 100644
--- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
@@ -217,7 +217,7 @@ st_dst_reg::st_dst_reg(st_src_reg reg)
 
 class glsl_to_tgsi_instruction : public exec_node {
 public:
-   DECLARE_RZALLOC_CXX_OPERATORS(glsl_to_tgsi_instruction)
+   DECLARE_RALLOC_CXX_OPERATORS(glsl_to_tgsi_instruction)
 
    unsigned op;
    st_dst_reg dst;




More information about the mesa-commit mailing list