diff options
author | Rafael Antognolli <[email protected]> | 2017-06-13 16:43:59 -0700 |
---|---|---|
committer | Rafael Antognolli <[email protected]> | 2017-06-21 10:16:05 -0700 |
commit | 82c66965aca2e46ff643529bad1e0b0ce8ede92d (patch) | |
tree | 4c1b760c8d95ac043f2036ecf56e116a1ba071b0 /src/mesa/drivers | |
parent | eddb1ebccf741267de48178e8da78b6b78045ca9 (diff) |
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 <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/gen4_blorp_exec.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/gen4_blorp_exec.h b/src/mesa/drivers/dri/i965/gen4_blorp_exec.h index 183c0da0af3..86c5e547b55 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; |