From e9d68cc3da07c4b566799bbaec2434bfc21d3e0c Mon Sep 17 00:00:00 2001 From: Bruce Cherniak Date: Wed, 9 Mar 2016 19:30:00 -0600 Subject: gallium/swr: Resource management Better tracking of resource state and synchronization. A follow on commit will clean up resource functions into a new swr_resource.cpp file. Reviewed-By: George Kyriazis --- src/gallium/drivers/swr/swr_clear.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gallium/drivers/swr/swr_clear.cpp') diff --git a/src/gallium/drivers/swr/swr_clear.cpp b/src/gallium/drivers/swr/swr_clear.cpp index 9027f84f6ea..103bca99441 100644 --- a/src/gallium/drivers/swr/swr_clear.cpp +++ b/src/gallium/drivers/swr/swr_clear.cpp @@ -40,7 +40,7 @@ swr_clear(struct pipe_context *pipe, return; if (ctx->dirty) - swr_update_derived(ctx); + swr_update_derived(pipe); /* Update clearMask/targetMask */ #if 0 /* XXX SWR currently only clears SWR_ATTACHMENT_COLOR0, don't bother \ @@ -76,7 +76,7 @@ swr_clear(struct pipe_context *pipe, vp.height = ctx->framebuffer.height; SwrSetViewports(ctx->swrContext, 1, &vp, NULL); - swr_update_draw_context(ctx); + swr_update_draw_context(ctx); SwrClearRenderTarget(ctx->swrContext, clearMask, color->f, depth, stencil); } -- cgit v1.2.3