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>
Mon, 14 Dec 2015 23:58:09 +0000 (15:58 -0800)
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 6520424a0b039dc7e699ac5e1f7d7c0644bd1445..cbaa8afcdcf558611dc9ef6ac7840bf0ff56e009 100644 (file)
@@ -1021,7 +1021,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 f2e384129cb5148ed225ae2a2d133c2eeb63a0c9..7bed21795315d9adaf5122698487f3b282c018cc 100644 (file)
@@ -313,8 +313,6 @@ public:
    struct brw_stage_prog_data *prog_data;
    struct gl_program *prog;
 
-   int *param_size;
-
    int *virtual_grf_start;
    int *virtual_grf_end;
    brw::fs_live_variables *live_intervals;
index 2681dab3f46916ca8eca92b036e9c64b0ff64840..82a6ce2b29509386f3dce7172780ab5e74eebd56 100644 (file)
@@ -174,15 +174,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 0582e7831def567be495f06098528b869902082c..75ca1da8a79fe926f102f2285b5d5504c86e86f6 100644 (file)
@@ -1012,9 +1012,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()