OSDN Git Service

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 36d9cf0..79c5a11 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;