summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2014-02-08 09:51:14 -0800
committerBrian Paul <[email protected]>2014-02-26 13:35:58 -0700
commit2e2719246aff9765d66f9608731695b22ce4c293 (patch)
treeacd164dca3806b6ec04aa235c50affa5a91bc2ce
parent5f69eb6caac98a20eda53944fe22ee390699caeb (diff)
svga: add svga_have_gb_objects/dma() functions
Reviewed-by: Thomas Hellstrom <[email protected]> Cc: "10.1" <[email protected]> (cherry picked from commit 31dfefc47f9f12c49fd3cfb27ba4fe384cb60380)
-rw-r--r--src/gallium/drivers/svga/svga_context.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_context.h b/src/gallium/drivers/svga/svga_context.h
index 71d4014170d..5b04bb482a1 100644
--- a/src/gallium/drivers/svga/svga_context.h
+++ b/src/gallium/drivers/svga/svga_context.h
@@ -36,8 +36,10 @@
#include "tgsi/tgsi_scan.h"
+#include "svga_screen.h"
#include "svga_state.h"
#include "svga_tgsi.h"
+#include "svga_winsys.h"
#include "svga_hw_reg.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