Mesa (master): intel: initialize fs_visitor::params_remap in constructor

Dave Airlie airlied at kemper.freedesktop.org
Thu May 30 00:37:53 UTC 2013


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

Author: Frank Henigman <fjhenigman at google.com>
Date:   Mon Jan 28 20:06:59 2013 -0500

intel: initialize fs_visitor::params_remap in constructor

Set fs_visitor::params_remap to NULL in the constructor.
This variable was potentially tested in fs_visitor::remove_dead_constants()
before being set.

NOTE: This is a candidate for stable release branches.

Signed-off-by: Frank Henigman <fjhenigman at google.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
Signed-off-by: Dave Airlie <airlied at redhat.com>

---

 src/mesa/drivers/dri/i965/brw_fs_visitor.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
index 36d9cf0..79c5a11 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
@@ -2463,6 +2463,8 @@ fs_visitor::fs_visitor(struct brw_context *brw,
    this->virtual_grf_end = NULL;
    this->live_intervals_valid = false;
 
+   this->params_remap = NULL;
+
    this->force_uncompressed_stack = 0;
    this->force_sechalf_stack = 0;
 




More information about the mesa-commit mailing list