intel/cs: Stop setting dispatch_grf_start_reg
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 22 Aug 2017 03:00:30 +0000 (20:00 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 7 Nov 2017 18:37:52 +0000 (10:37 -0800)
Nothing ever reads it for compute shaders because it's always 1.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/intel/compiler/brw_compiler.h
src/intel/compiler/brw_fs.cpp

index ede3d1508a1868f15f94f4095c779dbc1d6cac6f..662f645e183ce978ad853ba8a01ccbe9a97b2adc 100644 (file)
@@ -745,7 +745,6 @@ struct brw_push_const_block {
 struct brw_cs_prog_data {
    struct brw_stage_prog_data base;
 
-   GLuint dispatch_grf_start_reg_16;
    unsigned local_size[3];
    unsigned simd_size;
    unsigned threads;
index bb5f696d87ad9d23a6c8b6764e7e9c2a0df1f7d3..978bc9ecca52f73ee47e7d3efb97507c959c9add 100644 (file)
@@ -6866,7 +6866,6 @@ brw_compile_cs(const struct brw_compiler *compiler, void *log_data,
          cfg = v8.cfg;
          cs_set_simd_size(prog_data, 8);
          cs_fill_push_const_info(compiler->devinfo, prog_data);
-         prog_data->base.dispatch_grf_start_reg = v8.payload.num_regs;
       }
    }
 
@@ -6894,7 +6893,6 @@ brw_compile_cs(const struct brw_compiler *compiler, void *log_data,
          cfg = v16.cfg;
          cs_set_simd_size(prog_data, 16);
          cs_fill_push_const_info(compiler->devinfo, prog_data);
-         prog_data->dispatch_grf_start_reg_16 = v16.payload.num_regs;
       }
    }