From d4de813d86c38121649f11306080ebda193236a0 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 21 Aug 2017 20:00:30 -0700 Subject: [PATCH] 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 --- 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 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; } } -- 2.30.2