mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
i965/gen7: Fix GPU hangs from the HiZ op.
The wm max threads is in the same dword as the dispatch enable. The hardware gets super angry if you set max threads to 0, even if you aren't dispatching threads.
This commit is contained in:
parent
67007080b7
commit
e5b225afbd
1 changed files with 3 additions and 2 deletions
|
|
@ -322,8 +322,9 @@ gen7_hiz_exec(struct intel_context *intel,
|
|||
OUT_BATCH(_3DSTATE_PS << 16 | (8 - 2));
|
||||
OUT_BATCH(0);
|
||||
OUT_BATCH(0);
|
||||
OUT_BATCH((brw->max_wm_threads - 1) << GEN7_PS_MAX_THREADS_SHIFT);
|
||||
OUT_BATCH(GEN7_PS_32_DISPATCH_ENABLE);
|
||||
OUT_BATCH(0);
|
||||
OUT_BATCH(((brw->max_wm_threads - 1) << GEN7_PS_MAX_THREADS_SHIFT) |
|
||||
GEN7_PS_32_DISPATCH_ENABLE);
|
||||
OUT_BATCH(0);
|
||||
OUT_BATCH(0);
|
||||
OUT_BATCH(0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue