svga: add have_sm4_1 flag, helper function
Signed-off-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user