intel: initialize fs_visitor::params_remap in constructor
authorFrank Henigman <fjhenigman@google.com>
Tue, 29 Jan 2013 01:06:59 +0000 (20:06 -0500)
committerDave Airlie <airlied@redhat.com>
Thu, 30 May 2013 00:37:35 +0000 (10:37 +1000)
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@google.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp

index 36d9cf0505379f68d3ccd13d2379d4ab1b8819c2..79c5a11f507b1b275b5d1e9184e5ea947cd36d2a 100644 (file)
@@ -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;