From: Jason Ekstrand Date: Tue, 22 Aug 2017 03:00:30 +0000 (-0700) Subject: intel/cs: Stop setting dispatch_grf_start_reg X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d4de813d86c38121649f11306080ebda193236a0;p=mesa.git 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 --- 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; } }