summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2017-10-04 10:49:42 -0600
committerBrian Paul <[email protected]>2018-09-10 13:07:30 -0600
commit018ff0112ff021ddb2fe0408453083c2b7655dca (patch)
tree8be4b0d4c7b065543dde42aa3c865d97fa4543c4 /src/gallium/drivers/svga
parentd211679017b8fe5eb0fa39762bc7f8aa05941d73 (diff)
svga: add have_sm4_1 flag, helper function
Signed-off-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga')
-rw-r--r--src/gallium/drivers/svga/svga_context.h6
-rw-r--r--src/gallium/drivers/svga/svga_winsys.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_context.h b/src/gallium/drivers/svga/svga_context.h
index 484fd55d5ed..fc63ec34670 100644
--- a/src/gallium/drivers/svga/svga_context.h
+++ b/src/gallium/drivers/svga/svga_context.h
@@ -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;
diff --git a/src/gallium/drivers/svga/svga_winsys.h b/src/gallium/drivers/svga/svga_winsys.h
index ea7bbb380a8..e8fe3e205a9 100644
--- a/src/gallium/drivers/svga/svga_winsys.h
+++ b/src/gallium/drivers/svga/svga_winsys.h
@@ -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;