Commit 2c9bc0d2 authored by Jan Zielinski's avatar Jan Zielinski Committed by Marge Bot

swr: Fix crashes on Windows

SWR is missing implementation of pipe_context::flush_resource
function, which is now in the execution path on Windows.
This change adds an empty implementation (flush_resource
is NOOP in SWR) to prevent crashes
Reviewed-by: Krzysztof Raszkowski's avatarKrzysztof Raszkowski <>
Part-of: <mesa/mesa!8159>
parent 9860b190
......@@ -428,6 +428,13 @@ swr_render_condition(struct pipe_context *pipe,
ctx->render_cond_cond = condition;
static void
swr_flush_resource(struct pipe_context *ctx, struct pipe_resource *resource)
static void
swr_UpdateStats(HANDLE hPrivateContext, const SWR_STATS *pStats)
......@@ -557,6 +564,7 @@ swr_create_context(struct pipe_screen *p_screen, void *priv, unsigned flags)
ctx->pipe.clear_texture = util_clear_texture;
ctx->pipe.resource_copy_region = swr_resource_copy;
ctx->pipe.flush_resource = swr_flush_resource;
ctx->pipe.render_condition = swr_render_condition;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment