summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-08-21 20:00:30 -0700
committerJason Ekstrand <[email protected]>2017-11-07 10:37:52 -0800
commitd4de813d86c38121649f11306080ebda193236a0 (patch)
tree1d837a82c46f3b2e257f42be9c7fa75cc525382a
parentb1a9cdede4b500560ba6b44761296f09b4a7558f (diff)
intel/cs: Stop setting dispatch_grf_start_reg
Nothing ever reads it for compute shaders because it's always 1. Reviewed-by: Iago Toral Quiroga <[email protected]>
-rw-r--r--src/intel/compiler/brw_compiler.h1
-rw-r--r--src/intel/compiler/brw_fs.cpp2
2 files changed, 0 insertions, 3 deletions
diff --git a/src/intel/compiler/brw_compiler.h b/src/intel/compiler/brw_compiler.h
index ede3d1508a1..662f645e183 100644
--- a/src/intel/compiler/brw_compiler.h
+++ b/src/intel/compiler/brw_compiler.h
@@ -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;
diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp
index bb5f696d87a..978bc9ecca5 100644
--- a/src/intel/compiler/brw_fs.cpp
+++ b/src/intel/compiler/brw_fs.cpp
@@ -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;
}
}