mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
i965/gen8: fix cull distance emission for tessellation shaders.
This fixes some cases of:
GL45-CTS.cull_distance.functional
on Skylake.
Reviewed-by: Chris Forbes <chrisforbes@google.com>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
(cherry picked from commit c295923d13)
This commit is contained in:
parent
4306e01ece
commit
49c53a2987
1 changed files with 5 additions and 3 deletions
|
|
@ -69,9 +69,11 @@ gen8_upload_ds_state(struct brw_context *brw)
|
|||
GEN7_DS_SIMD8_DISPATCH_ENABLE : 0) |
|
||||
(tes_prog_data->domain == BRW_TESS_DOMAIN_TRI ?
|
||||
GEN7_DS_COMPUTE_W_COORDINATE_ENABLE : 0));
|
||||
OUT_BATCH(SET_FIELD(vue_prog_data->cull_distance_mask |
|
||||
ctx->Transform.ClipPlanesEnabled,
|
||||
GEN8_DS_USER_CLIP_DISTANCE));
|
||||
OUT_BATCH(SET_FIELD(ctx->Transform.ClipPlanesEnabled,
|
||||
GEN8_DS_USER_CLIP_DISTANCE) |
|
||||
SET_FIELD(vue_prog_data->cull_distance_mask,
|
||||
GEN8_DS_USER_CULL_DISTANCE));
|
||||
|
||||
|
||||
if (brw->gen >= 9) {
|
||||
OUT_BATCH(0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue