zink: move set_active_query_state-stub to zink_query.c
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 16 Jul 2019 09:20:42 +0000 (11:20 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 28 Oct 2019 08:51:47 +0000 (08:51 +0000)
Acked-by: Jordan Justen <jordan.l.justen@intel.com>
src/gallium/drivers/zink/zink_context.c
src/gallium/drivers/zink/zink_query.c

index 77b57c1397c2a233c6db8cbedf24d1521c4eea05..03f5d1b6c9b74d2d11b65e73ee12699e032cfb4d 100644 (file)
@@ -655,11 +655,6 @@ zink_set_framebuffer_state(struct pipe_context *pctx,
    }
 }
 
-static void
-zink_set_active_query_state(struct pipe_context *pctx, bool enable)
-{
-}
-
 static void
 zink_set_blend_color(struct pipe_context *pctx,
                      const struct pipe_blend_color *color)
@@ -1410,7 +1405,6 @@ zink_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags)
    ctx->base.set_framebuffer_state = zink_set_framebuffer_state;
    ctx->base.set_stencil_ref = zink_set_stencil_ref;
    ctx->base.set_clip_state = zink_set_clip_state;
-   ctx->base.set_active_query_state = zink_set_active_query_state;
    ctx->base.set_blend_color = zink_set_blend_color;
 
    ctx->base.set_sample_mask = zink_set_sample_mask;
index ee9837332ba916118d3469e60abc7b742642aead..d5fc800591576c0f3b59564f1c5d2eb2ce828822 100644 (file)
@@ -150,6 +150,11 @@ zink_get_query_result(struct pipe_context *pctx,
    return TRUE;
 }
 
+static void
+zink_set_active_query_state(struct pipe_context *pctx, bool enable)
+{
+}
+
 void
 zink_context_query_init(struct pipe_context *pctx)
 {
@@ -158,4 +163,5 @@ zink_context_query_init(struct pipe_context *pctx)
    pctx->begin_query = zink_begin_query;
    pctx->end_query = zink_end_query;
    pctx->get_query_result = zink_get_query_result;
+   pctx->set_active_query_state = zink_set_active_query_state;
 }