[Mesa-dev] [PATCH] r600/fp64: Fix build.

Dylan Baker dylan at pnwbakers.com
Mon Feb 5 23:30:06 UTC 2018


I just wrote the same patch:
Reviewed-by: Dylan Baker <dylan at pnwbakers.com>

Quoting Vinson Lee (2018-02-05 15:24:45)
>   CC       r600_shader.lo
> r600_shader.c: In function ‘egcm_int_to_double’:
> r600_shader.c:4543:12: error: ‘ctx’ is a pointer; did you mean to use ‘->’?
>      if (ctx.bc->chip_class == CAYMAN)
>             ^
>             ->
> 
> Fixes: 35b430157776 ("r600/fp64: fix integer->double conversion")
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>  src/gallium/drivers/r600/r600_shader.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
> index e3b832b04f77..4874d14a581d 100644
> --- a/src/gallium/drivers/r600/r600_shader.c
> +++ b/src/gallium/drivers/r600/r600_shader.c
> @@ -4540,7 +4540,7 @@ static int egcm_int_to_double(struct r600_shader_ctx *ctx)
>                                 alu.dst.sel = temp_reg;
>                                 alu.dst.chan = i;
>                                 alu.dst.write = 1;
> -                               if (ctx.bc->chip_class == CAYMAN)
> +                               if (ctx->bc->chip_class == CAYMAN)
>                                         alu.last = i == dchan + 1;
>                                 else
>                                         alu.last = 1; /* trans only ops on evergreen */
> -- 
> 2.14.1
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180205/93d8b5b5/attachment.sig>


More information about the mesa-dev mailing list