Mesa (master): svga: add svga_have_gb_objects/dma() functions

Brian Paul brianp at kemper.freedesktop.org
Fri Feb 14 17:58:21 UTC 2014


Module: Mesa
Branch: master
Commit: 31dfefc47f9f12c49fd3cfb27ba4fe384cb60380
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=31dfefc47f9f12c49fd3cfb27ba4fe384cb60380

Author: Brian Paul <brianp at vmware.com>
Date:   Sat Feb  8 09:51:14 2014 -0800

svga: add svga_have_gb_objects/dma() functions

Reviewed-by: Thomas Hellstrom <thellstrom at vmware.com>
Cc: "10.1" <mesa-stable at lists.freedesktop.org>

---

 src/gallium/drivers/svga/svga_context.h |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/src/gallium/drivers/svga/svga_context.h b/src/gallium/drivers/svga/svga_context.h
index 71d4014..5b04bb4 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




More information about the mesa-commit mailing list