i965/fs: Get rid of the param_size array
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 25 Nov 2015 01:02:01 +0000 (17:02 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 14 Apr 2016 22:59:33 +0000 (15:59 -0700)
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_nir.cpp
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp

index 81d6018dc4209401319f9e63f35290dd0ebbb822..e2a31aeeaf4fc256b755489c7c895839ccc726b3 100644 (file)
@@ -1024,7 +1024,6 @@ fs_visitor::import_uniforms(fs_visitor *v)
    this->push_constant_loc = v->push_constant_loc;
    this->pull_constant_loc = v->pull_constant_loc;
    this->uniforms = v->uniforms;
-   this->param_size = v->param_size;
 }
 
 fs_reg *
index d4acc8798be3e754eae75cdadc6c7b7b7422be92..8c412f56bc4d2d0a1319af9fbf343cbe2b99ad97 100644 (file)
@@ -326,8 +326,6 @@ public:
 
    const struct brw_vue_map *input_vue_map;
 
-   int *param_size;
-
    int *virtual_grf_start;
    int *virtual_grf_end;
    brw::fs_live_variables *live_intervals;
index 59b1376d7304715a5159940a6d106b5c22743f97..c16f1ed5477b1370bf9377f0f64104e82626f6ae 100644 (file)
@@ -179,15 +179,6 @@ fs_visitor::nir_setup_uniforms()
       return;
 
    uniforms = nir->num_uniforms / 4;
-
-   nir_foreach_variable(var, &nir->uniforms) {
-      /* UBO's and atomics don't take up space in the uniform file */
-      if (var->interface_type != NULL || var->type->contains_atomic())
-         continue;
-
-      if (type_size_scalar(var->type) > 0)
-         param_size[var->data.driver_location / 4] = type_size_scalar(var->type);
-   }
 }
 
 static bool
index 4fbcf2bd105f0b04109b995c94d931c551745689..daabf708b06e9e7913d7f0ace8d167b88b719f42 100644 (file)
@@ -1069,9 +1069,6 @@ fs_visitor::init()
 
    this->spilled_any_registers = false;
    this->do_dual_src = false;
-
-   if (dispatch_width == 8)
-      this->param_size = rzalloc_array(mem_ctx, int, stage_prog_data->nr_params);
 }
 
 fs_visitor::~fs_visitor()