aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svga_context.h
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/svga_context.h
parentd211679017b8fe5eb0fa39762bc7f8aa05941d73 (diff)
svga: add have_sm4_1 flag, helper function
Signed-off-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_context.h')
-rw-r--r--src/gallium/drivers/svga/svga_context.h6
1 files changed, 6 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;