[Mesa-dev] [PATCH 15/44] intel/cs: Stop setting dispatch_grf_start_reg

Jason Ekstrand jason at jlekstrand.net
Tue Sep 5 15:13:07 UTC 2017


Nothing ever reads it for compute shaders because it's always 1.
---
 src/intel/compiler/brw_compiler.h | 1 -
 src/intel/compiler/brw_fs.cpp     | 2 --
 2 files changed, 3 deletions(-)

diff --git a/src/intel/compiler/brw_compiler.h b/src/intel/compiler/brw_compiler.h
index 6753a8d..930c5b8 100644
--- a/src/intel/compiler/brw_compiler.h
+++ b/src/intel/compiler/brw_compiler.h
@@ -655,7 +655,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;
diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp
index 2ea4994..3cab7ff 100644
--- a/src/intel/compiler/brw_fs.cpp
+++ b/src/intel/compiler/brw_fs.cpp
@@ -6800,7 +6800,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;
       }
    }
 
@@ -6825,7 +6824,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;
       }
    }
 
-- 
2.5.0.400.gff86faf



More information about the mesa-dev mailing list