mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
anv: Enable early culling on Gen7.
We set the cull mode, but forgot the enable bit. Gen8 uses this.
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
(cherry picked from commit 44502afd82)
This commit is contained in:
parent
626f21051b
commit
a00081a9e8
1 changed files with 1 additions and 0 deletions
|
|
@ -122,6 +122,7 @@ genX(graphics_pipeline_create)(
|
|||
|
||||
anv_batch_emit(&pipeline->batch, GENX(3DSTATE_CLIP), clip) {
|
||||
clip.FrontWinding = vk_to_gen_front_face[rs_info->frontFace],
|
||||
clip.EarlyCullEnable = true,
|
||||
clip.CullMode = vk_to_gen_cullmode[rs_info->cullMode],
|
||||
clip.ClipEnable = !(extra && extra->use_rectlist),
|
||||
clip.APIMode = APIMODE_D3D,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue