r600/fp64: Fix build.
authorVinson Lee <vlee@freedesktop.org>
Mon, 5 Feb 2018 23:24:45 +0000 (23:24 +0000)
committerDylan Baker <dylan@pnwbakers.com>
Mon, 5 Feb 2018 23:32:20 +0000 (15:32 -0800)
  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@freedesktop.org>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
src/gallium/drivers/r600/r600_shader.c

index e3b832b04f775f48055c86e2d565cf065299127b..4874d14a581de7cd7f8e15af770d1474862ea5c9 100644 (file)
@@ -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 */