svga: add have_sm4_1 flag, helper function

Signed-off-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
Brian Paul 2017-10-04 10:49:42 -06:00
parent d211679017
commit 018ff0112f
2 changed files with 9 additions and 0 deletions

View file

@ -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)
{

View 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;