On Thursday, September 10, 2015 04:24:51 PM Jason Ekstrand wrote:
> Cc: "11.0 10.6" <mesa-sta...@lists.freedesktop.org>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91719
> ---
>  src/mesa/drivers/dri/i965/brw_vec4.cpp | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp 
> b/src/mesa/drivers/dri/i965/brw_vec4.cpp
> index 78ee8fe..01c1259 100644
> --- a/src/mesa/drivers/dri/i965/brw_vec4.cpp
> +++ b/src/mesa/drivers/dri/i965/brw_vec4.cpp
> @@ -953,6 +953,13 @@ vec4_instruction::can_reswizzle(int dst_writemask,
>     if (mlen > 0)
>        return false;
>  
> +   /* We can't use swizzles on the accumulator and that's really the only
> +    * HW_REG we would care to reswizzle so just dissalow them all.

                                                   disallow

> +    */
> +   for (int i = 0; i < 3; i++)

braces around the loop since it spans more than one line of text.

Reviewed-by: Kenneth Graunke <kenn...@whitecape.org>

> +      if (src[i].file == HW_REG)
> +         return false;
> +
>     return true;
>  }
>  
> 

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to