[Mesa-stable] [PATCH 1/3] i965: Put an assertion to check valid varying_to_slot[varying]

Kenneth Graunke kenneth at whitecape.org
Wed Apr 16 21:14:15 PDT 2014


On 04/14/2014 04:23 PM, Anuj Phogat wrote:
> Cc: <mesa-stable at lists.freedesktop.org>
> Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
> ---
>  src/mesa/drivers/dri/i965/gen7_sol_state.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/mesa/drivers/dri/i965/gen7_sol_state.c b/src/mesa/drivers/dri/i965/gen7_sol_state.c
> index 1b58efb..06a4cdf 100644
> --- a/src/mesa/drivers/dri/i965/gen7_sol_state.c
> +++ b/src/mesa/drivers/dri/i965/gen7_sol_state.c
> @@ -132,6 +132,7 @@ gen7_upload_3dstate_so_decl_list(struct brw_context *brw,
>        buffer_mask |= 1 << buffer;
>  
>        decl |= buffer << SO_DECL_OUTPUT_BUFFER_SLOT_SHIFT;
> +      assert(vue_map->varying_to_slot[varying] >= 0);
>        decl |= vue_map->varying_to_slot[varying] <<
>  	 SO_DECL_REGISTER_INDEX_SHIFT;
>        decl |= component_mask << SO_DECL_COMPONENT_MASK_SHIFT;
> 

This series is:
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/mesa-stable/attachments/20140416/151e87d7/attachment.sig>


More information about the mesa-stable mailing list