[Mesa-stable] [Mesa-dev] [PATCH 1/8] i965: Fix missing _NEW_TRANSFORM in Gen8+ 3DSTATE_DS atom.
Nanley Chery
nanleychery at gmail.com
Thu Sep 22 17:51:28 UTC 2016
On Wed, Sep 21, 2016 at 10:31:05PM -0700, Kenneth Graunke wrote:
> Needed for user clip plane enables. Brkoen since this code was
^^
Broken
-Nanley
> introduced.
>
> Cc: mesa-stable at lists.freedesktop.org
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
> ---
> src/mesa/drivers/dri/i965/gen8_ds_state.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/mesa/drivers/dri/i965/gen8_ds_state.c b/src/mesa/drivers/dri/i965/gen8_ds_state.c
> index 6f01abb..3b79b55 100644
> --- a/src/mesa/drivers/dri/i965/gen8_ds_state.c
> +++ b/src/mesa/drivers/dri/i965/gen8_ds_state.c
> @@ -69,6 +69,7 @@ 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));
> + /* _NEW_TRANSFORM */
> OUT_BATCH(SET_FIELD(ctx->Transform.ClipPlanesEnabled,
> GEN8_DS_USER_CLIP_DISTANCE) |
> SET_FIELD(vue_prog_data->cull_distance_mask,
> @@ -106,7 +107,7 @@ gen8_upload_ds_state(struct brw_context *brw)
>
> const struct brw_tracked_state gen8_ds_state = {
> .dirty = {
> - .mesa = 0,
> + .mesa = _NEW_TRANSFORM,
> .brw = BRW_NEW_BATCH |
> BRW_NEW_BLORP |
> BRW_NEW_TESS_PROGRAMS |
> --
> 2.10.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-stable
mailing list