[virglrenderer-devel] [PATCH] vrend: bind correct face during blitter fallback
Gurchetan Singh
gurchetansingh at chromium.org
Fri Mar 2 01:32:15 UTC 2018
In the case of PIPE_TEXTURE_CUBE, util_gen_mipmap (in Mesa)
encodes the target face in blit.{src,dst}.box.z. We need to
bind to the correct texture target before we draw.
Also removed extraneous whitespace.
Fixes:
dEQP-GLES2.functional.texture.mipmap.cube.generate.a8_fastest
dEQP-GLES2.functional.texture.mipmap.cube.generate.a8_nicest
dEQP-GLES2.functional.texture.specification.basic_copyteximage2d.cube_alpha
dEQP-GLES2.functional.texture.specification.basic_copytexsubimage2d.cube_alpha
---
src/vrend_blitter.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/vrend_blitter.c b/src/vrend_blitter.c
index ebd76ac..7bc9fd4 100644
--- a/src/vrend_blitter.c
+++ b/src/vrend_blitter.c
@@ -647,9 +647,7 @@ void vrend_renderer_blit_gl(struct vrend_context *ctx,
float src_z = (dst_z + dst_offset) * dst2src_scale;
glBindFramebuffer(GL_FRAMEBUFFER_EXT, blit_ctx->fb_id);
- vrend_fb_bind_texture(dst_res, 0, info->dst.level, dst_z);
-
-
+ vrend_fb_bind_texture(dst_res, 0, info->dst.level, info->dst.box.z);
buffers = GL_COLOR_ATTACHMENT0_EXT;
glDrawBuffers(1, &buffers);
--
2.16.2.395.g2e18187dfd-goog
More information about the virglrenderer-devel
mailing list