diff options
author | Dave Airlie <[email protected]> | 2016-06-07 10:27:44 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2016-06-07 11:52:17 +1000 |
commit | c295923d139b2c2daf169c94d9edcca23527289b (patch) | |
tree | 85f770415b165dd7592199be68d2ea03c4c29089 /src/mesa | |
parent | 704bc0f0e98f3bbdef33cad12646d4e1bf01e8aa (diff) |
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 <[email protected]>
Cc: "12.0" <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/gen8_ds_state.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/gen8_ds_state.c b/src/mesa/drivers/dri/i965/gen8_ds_state.c index 95582ac4448..0219d072c72 100644 --- a/src/mesa/drivers/dri/i965/gen8_ds_state.c +++ b/src/mesa/drivers/dri/i965/gen8_ds_state.c @@ -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); |