st/mesa: query PIPE_CAP_TGSI_CONT_SUPPORTED
authorBrian Paul <brianp@vmware.com>
Tue, 23 Jun 2009 20:28:43 +0000 (14:28 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 26 Jun 2009 19:16:33 +0000 (13:16 -0600)
src/mesa/state_tracker/st_extensions.c

index 8f6be507742fcb386bb57b4af4ccb3852e6834c1..e6728ae8955fb7c396e8c1b6b1fb6f017781a8c4 100644 (file)
@@ -120,6 +120,11 @@ void st_init_limits(struct st_context *st)
    c->MaxDrawBuffers
       = CLAMP(screen->get_param(screen, PIPE_CAP_MAX_RENDER_TARGETS),
               1, MAX_DRAW_BUFFERS);
+
+   /* Is TGSI_OPCODE_CONT supported? */
+   /* XXX separate query for early function return? */
+   st->ctx->Shader.EmitContReturn =
+      screen->get_param(screen, PIPE_CAP_TGSI_CONT_SUPPORTED);
 }