From 018ff0112ff021ddb2fe0408453083c2b7655dca Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 4 Oct 2017 10:49:42 -0600 Subject: [PATCH] svga: add have_sm4_1 flag, helper function Signed-off-by: Brian Paul --- src/gallium/drivers/svga/svga_context.h | 6 ++++++ src/gallium/drivers/svga/svga_winsys.h | 3 +++ 2 files changed, 9 insertions(+) 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 @@ -717,6 +717,12 @@ svga_have_vgpu10(const struct svga_context *svga) return svga_screen(svga->pipe.screen)->sws->have_vgpu10; } +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) { 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; -- 2.30.2