[Mesa-dev] [PATCH 1/2] i965: silence signed/unsigned comparison warning
Paul Berry
stereotype441 at gmail.com
Wed Oct 19 12:40:32 PDT 2011
On 18 October 2011 18:07, Brian Paul <brian.e.paul at gmail.com> wrote:
> From: Brian Paul <brianp at vmware.com>
>
> ---
> src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
> b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
> index e003020..0ea6d31 100644
> --- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
> +++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
> @@ -1549,7 +1549,8 @@ vec4_visitor::try_rewrite_rhs_to_dst(ir_assignment
> *ir,
> * potentially reswizzle the operands of many instructions so that
> * we could handle out of order channels, but don't yet.
> */
> - for (int i = 0; i < 4; i++) {
> +
> + for (unsigned i = 0; i < 4; i++) {
> if (dst.writemask & (1 << i)) {
> if (!(last_rhs_inst->dst.writemask & (1 << i)))
> return false;
> --
> 1.7.3.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20111019/99c2575d/attachment.htm>
More information about the mesa-dev
mailing list