svga: we don't support TGSI_OPCODE_CONT
authorBrian Paul <brianp@vmware.com>
Mon, 30 Sep 2013 15:47:31 +0000 (09:47 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 1 Oct 2013 00:50:37 +0000 (18:50 -0600)
So return PIPE_SHADER_CAP_TGSI_CONT_SUPPORTED = 0.

src/gallium/drivers/svga/svga_screen.c
src/gallium/drivers/svga/svga_tgsi_insn.c

index 40b35ccb6f8481cca2c841873375bb2fade26f05..8d395f03cfca8c70e7ceb719fac3490e2c55c50f 100644 (file)
@@ -318,7 +318,7 @@ static int svga_get_shader_param(struct pipe_screen *screen, unsigned shader, en
       case PIPE_SHADER_CAP_MAX_PREDS:
          return 1;
       case PIPE_SHADER_CAP_TGSI_CONT_SUPPORTED:
-         return 1;
+         return 0;
       case PIPE_SHADER_CAP_TGSI_SQRT_SUPPORTED:
          return 0;
       case PIPE_SHADER_CAP_INDIRECT_OUTPUT_ADDR:
@@ -365,7 +365,7 @@ static int svga_get_shader_param(struct pipe_screen *screen, unsigned shader, en
       case PIPE_SHADER_CAP_MAX_PREDS:
          return 1;
       case PIPE_SHADER_CAP_TGSI_CONT_SUPPORTED:
-         return 1;
+         return 0;
       case PIPE_SHADER_CAP_TGSI_SQRT_SUPPORTED:
          return 0;
       case PIPE_SHADER_CAP_INDIRECT_INPUT_ADDR:
index c30613d802da1a678fac3bb2f82862dbdeacb519..b96efbc650b6f790e9559d596e419d2f5d772cff 100644 (file)
@@ -2892,6 +2892,9 @@ svga_emit_instruction(struct svga_shader_emitter *emit,
       return emit_scalar_op1( emit, SVGA3DOP_RCP, insn );
 
    case TGSI_OPCODE_CONT:
+      /* not expected (we return PIPE_SHADER_CAP_TGSI_CONT_SUPPORTED = 0) */
+      return FALSE;
+
    case TGSI_OPCODE_RET:
       /* This is a noop -- we tell mesa that we can't support RET
        * within a function (early return), so this will always be