From: Brian Paul Date: Wed, 4 Oct 2017 16:49:42 +0000 (-0600) Subject: svga: add have_sm4_1 flag, helper function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=018ff0112ff021ddb2fe0408453083c2b7655dca;p=mesa.git svga: add have_sm4_1 flag, helper function Signed-off-by: Brian Paul --- 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;