diff options
author | Rafael Antognolli <[email protected]> | 2018-10-29 10:19:54 -0700 |
---|---|---|
committer | Rafael Antognolli <[email protected]> | 2018-12-14 09:40:27 -0800 |
commit | 5c454661c66fa2624cf4bba1071175070724869a (patch) | |
tree | d0e0580dab7399defa3f7355b9774dc120e23d6c /include | |
parent | d8b50e152a0d5df0971c05b8db132fa688794001 (diff) |
i965/gen9: Add workarounds for object preemption.
Gen9 hardware requires some workarounds to disable preemption depending
on the type of primitive being emitted.
We implement this by adding a function that checks the primitive type
and number of instances right before the 3DPRIMITIVE.
For now, we just ignore blorp. The only primitive it emits is
3DPRIM_RECTLIST, and since it's not listed in the workarounds, we can
safely leave preemption enabled when it happens. Or it will be disabled
by a previous 3DPRIMITIVE, which should be fine too.
v3:
- Apply missing workarounds for instanced rendering and line loop (Ken)
- Move workaround code to brw_draw_single_prim()
Signed-off-by: Rafael Antognolli <[email protected]>
Cc: Kenneth Graunke <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions