svga: add svga_have_gb_objects/dma() functions

Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Cc: "10.1" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
Brian Paul 2014-02-08 09:51:14 -08:00
parent 823fbfdca7
commit 31dfefc47f

View file

@ -36,8 +36,10 @@
#include "tgsi/tgsi_scan.h" #include "tgsi/tgsi_scan.h"
#include "svga_screen.h"
#include "svga_state.h" #include "svga_state.h"
#include "svga_tgsi.h" #include "svga_tgsi.h"
#include "svga_winsys.h"
#include "svga_hw_reg.h" #include "svga_hw_reg.h"
#include "svga3d_shaderdefs.h" #include "svga3d_shaderdefs.h"
@ -481,5 +483,17 @@ svga_context( struct pipe_context *pipe )
} }
static INLINE boolean
svga_have_gb_objects(const struct svga_context *svga)
{
return svga_screen(svga->pipe.screen)->sws->have_gb_objects;
}
static INLINE boolean
svga_have_gb_dma(const struct svga_context *svga)
{
return svga_screen(svga->pipe.screen)->sws->have_gb_dma;
}
#endif #endif