From d5dd2d302dafa2ad7690814a889b3800ed22a097 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Thu, 22 Aug 2019 19:19:29 +0200 Subject: [PATCH] vrend: Always use a texture view for the source when doing blits (HACK) Maybe it's a bug in mesa, maybe I didn't search long enough, but when I use the source texture directly in the blit then occationally we hit #112, and no unbinding of the textures from the texture unit or the framebuffers involved seems to help. Using a texture view, however, seem to solve the problem. Fixes #112 Signed-off-by: Gert Wollny Reviewed-by: Gurchetan Singh --- src/vrend_renderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index 624a5d7..6d96d00 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -8128,7 +8128,7 @@ static void vrend_renderer_blit_int(struct vrend_context *ctx, } } - if ((src_res->base.format != info->src.format) && has_feature(feat_texture_view)) + if (has_feature(feat_texture_view)) blitter_views[0] = vrend_make_view(src_res, info->src.format); if ((dst_res->base.format != info->dst.format) && has_feature(feat_texture_view))