From: Rafael Antognolli Date: Tue, 13 Jun 2017 23:43:59 +0000 (-0700) Subject: intel/genxml: Normalize fields on WM_STATE. X-Git-Tag: upstream/18.1.0~8576 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=82c66965aca2e46ff643529bad1e0b0ce8ede92d;p=platform%2Fupstream%2Fmesa.git intel/genxml: Normalize fields on WM_STATE. On gen4, WM_STATE only has one Kernel Start Pointer and one GRF Register Count, but we can make the code that handles this on multiple gens simpler if we add an index 0 to it too. Signed-off-by: Rafael Antognolli Reviewed-by: Kenneth Graunke --- diff --git a/src/intel/genxml/gen4.xml b/src/intel/genxml/gen4.xml index 5fcd6c9..33b4871 100644 --- a/src/intel/genxml/gen4.xml +++ b/src/intel/genxml/gen4.xml @@ -762,8 +762,8 @@ - - + + diff --git a/src/intel/genxml/gen45.xml b/src/intel/genxml/gen45.xml index 864946a..b708c4f 100644 --- a/src/intel/genxml/gen45.xml +++ b/src/intel/genxml/gen45.xml @@ -776,8 +776,8 @@ - - + + diff --git a/src/mesa/drivers/dri/i965/gen4_blorp_exec.h b/src/mesa/drivers/dri/i965/gen4_blorp_exec.h index 183c0da..86c5e54 100644 --- a/src/mesa/drivers/dri/i965/gen4_blorp_exec.h +++ b/src/mesa/drivers/dri/i965/gen4_blorp_exec.h @@ -139,9 +139,9 @@ blorp_emit_wm_state(struct blorp_batch *batch, wm._16PixelDispatchEnable = prog_data->dispatch_16; #if GEN_GEN == 4 - wm.KernelStartPointer = + wm.KernelStartPointer0 = instruction_state_address(batch, params->wm_prog_kernel); - wm.GRFRegisterCount = prog_data->reg_blocks_0; + wm.GRFRegisterCount0 = prog_data->reg_blocks_0; #else wm.KernelStartPointer0 = params->wm_prog_kernel; wm.GRFRegisterCount0 = prog_data->reg_blocks_0;