From 639b673fc3b8754dc85fd686dab6ac26738dc3d9 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sun, 8 Apr 2018 20:54:02 -0400 Subject: radeonsi: don't use an indirect table for state atoms MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/radeonsi/si_query.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gallium/drivers/radeonsi/si_query.c') diff --git a/src/gallium/drivers/radeonsi/si_query.c b/src/gallium/drivers/radeonsi/si_query.c index 7d94194f300..d1b519e5508 100644 --- a/src/gallium/drivers/radeonsi/si_query.c +++ b/src/gallium/drivers/radeonsi/si_query.c @@ -1776,7 +1776,7 @@ static void si_render_condition(struct pipe_context *ctx, { struct si_context *sctx = (struct si_context *)ctx; struct si_query_hw *rquery = (struct si_query_hw *)query; - struct si_atom *atom = &sctx->render_cond_atom; + struct si_atom *atom = &sctx->atoms.s.render_cond; if (query) { bool needs_workaround = false; @@ -2053,7 +2053,7 @@ void si_init_query_functions(struct si_context *sctx) sctx->b.end_query = si_end_query; sctx->b.get_query_result = si_get_query_result; sctx->b.get_query_result_resource = si_get_query_result_resource; - sctx->render_cond_atom.emit = si_emit_query_predication; + sctx->atoms.s.render_cond.emit = si_emit_query_predication; if (((struct si_screen*)sctx->b.screen)->info.num_render_backends > 0) sctx->b.render_condition = si_render_condition; -- cgit v1.2.3