[Mesa-dev] [PATCH] i965/skl: Force a BINDING_TABLE_POINTER_* command after push constant command

Kenneth Graunke kenneth at whitecape.org
Thu Jan 29 14:28:20 PST 2015


On Thursday, January 29, 2015 05:21:03 PM Neil Roberts wrote:
> According to the SkyLake bspec the 3DSTATE_CONSTANT_* commands only take
> effect on the next corresponding 3DSTATE_BINDING_TABLE_POINTER_* command. This
> patch just makes it set the BRW_NEW_SURFACES state when uploading the push
> constants to ensure the binding tables will be updated.
> 
> This fixes the fbo-blending-formats Piglit test and possibly others.
> 
> Reviewed-by: Kristian Høgsberg <krh at bitplanet.net>
> ---
>  src/mesa/drivers/dri/i965/gen7_vs_state.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/src/mesa/drivers/dri/i965/gen7_vs_state.c b/src/mesa/drivers/dri/i965/gen7_vs_state.c
> index 404dd20..c55d6ca 100644
> --- a/src/mesa/drivers/dri/i965/gen7_vs_state.c
> +++ b/src/mesa/drivers/dri/i965/gen7_vs_state.c
> @@ -60,6 +60,13 @@ gen7_upload_constant_state(struct brw_context *brw,
>     }
>  
>     ADVANCE_BATCH();
> +
> +  /* On SkyLake+ the new constants don't take effect until the next
> +   * corresponding 3DSTATE_BINDING_TABLE_POINTER_* command is parsed so we
> +   * need to ensure that is sent
> +   */
> +   if (brw->gen >= 9)
> +      brw->state.dirty.brw |= BRW_NEW_SURFACES;
>  }

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150129/8d7ef528/attachment.sig>


More information about the mesa-dev mailing list