svga: add have_sm4_1 flag, helper function
authorBrian Paul <brianp@vmware.com>
Wed, 4 Oct 2017 16:49:42 +0000 (10:49 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 10 Sep 2018 19:07:30 +0000 (13:07 -0600)
Signed-off-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/svga/svga_context.h
src/gallium/drivers/svga/svga_winsys.h

index 484fd55..fc63ec3 100644 (file)
@@ -718,6 +718,12 @@ svga_have_vgpu10(const struct svga_context *svga)
 }
 
 static inline boolean
+svga_have_sm4_1(const struct svga_context *svga)
+{
+   return svga_screen(svga->pipe.screen)->sws->have_sm4_1;
+}
+
+static inline boolean
 svga_need_to_rebind_resources(const struct svga_context *svga)
 {
    return svga_screen(svga->pipe.screen)->sws->need_to_rebind_resources;
index ea7bbb3..e8fe3e2 100644 (file)
@@ -756,6 +756,9 @@ struct svga_winsys_screen
    /** Have VGPU v10 hardware? */
    boolean have_vgpu10;
 
+   /** Have SM4_1 hardware? */
+   boolean have_sm4_1;
+
    /** To rebind resources at the beginnning of a new command buffer */
    boolean need_to_rebind_resources;