Mesa (master): galahad: Implement render_condition.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Fri Jul 6 17:47:03 UTC 2012


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

Author: José Fonseca <jfonseca at vmware.com>
Date:   Fri Jul  6 18:45:14 2012 +0100

galahad: Implement render_condition.

---

 src/gallium/drivers/galahad/glhd_context.c |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/galahad/glhd_context.c b/src/gallium/drivers/galahad/glhd_context.c
index 4c6e6e6..4947569 100644
--- a/src/gallium/drivers/galahad/glhd_context.c
+++ b/src/gallium/drivers/galahad/glhd_context.c
@@ -948,6 +948,18 @@ galahad_context_transfer_inline_write(struct pipe_context *_context,
 }
 
 
+static void
+galahad_context_render_condition(struct pipe_context *_context,
+                                 struct pipe_query *query,
+                                 uint mode)
+{
+   struct galahad_context *glhd_context = galahad_context(_context);
+   struct pipe_context *context = glhd_context->pipe;
+
+   context->render_condition(context, query, mode);
+}
+
+
 struct pipe_context *
 galahad_context_create(struct pipe_screen *_screen, struct pipe_context *pipe)
 {
@@ -1021,7 +1033,7 @@ galahad_context_create(struct pipe_screen *_screen, struct pipe_context *pipe)
    GLHD_PIPE_INIT(clear_render_target);
    GLHD_PIPE_INIT(clear_depth_stencil);
    GLHD_PIPE_INIT(flush);
-   //GLHD_PIPE_INIT(render_condition);
+   GLHD_PIPE_INIT(render_condition);
    //GLHD_PIPE_INIT(texture_barrier);
    GLHD_PIPE_INIT(get_transfer);
    GLHD_PIPE_INIT(transfer_destroy);




More information about the mesa-commit mailing list