mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
i965: Disable clipping when rendering 3DPRIM_RECTLIST primitives
The clipper doesn't support clipping 3DPRIM_RECTLIST primitives and must be turned off when we use them. Signed-off-by: Kristian Høgsberg <krh@bitplanet.net> Acked-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
3f0f2c7f7d
commit
1a05dcb349
1 changed files with 7 additions and 1 deletions
|
|
@ -129,10 +129,16 @@ upload_clip_state(struct brw_context *brw)
|
||||||
"having the GS not write primitives would likely");
|
"having the GS not write primitives would likely");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint32_t enable;
|
||||||
|
if (brw->primitive == _3DPRIM_RECTLIST)
|
||||||
|
enable = 0;
|
||||||
|
else
|
||||||
|
enable = GEN6_CLIP_ENABLE;
|
||||||
|
|
||||||
BEGIN_BATCH(4);
|
BEGIN_BATCH(4);
|
||||||
OUT_BATCH(_3DSTATE_CLIP << 16 | (4 - 2));
|
OUT_BATCH(_3DSTATE_CLIP << 16 | (4 - 2));
|
||||||
OUT_BATCH(dw1);
|
OUT_BATCH(dw1);
|
||||||
OUT_BATCH(GEN6_CLIP_ENABLE |
|
OUT_BATCH(enable |
|
||||||
GEN6_CLIP_API_OGL |
|
GEN6_CLIP_API_OGL |
|
||||||
GEN6_CLIP_MODE_NORMAL |
|
GEN6_CLIP_MODE_NORMAL |
|
||||||
GEN6_CLIP_XY_TEST |
|
GEN6_CLIP_XY_TEST |
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue