Skip to content

Commit

Permalink
mesa: add upstream fix
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Raue <stephan@openelec.tv>
  • Loading branch information
sraue committed Sep 12, 2015
1 parent 06e44c3 commit d0f7dba
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions packages/graphics/mesa/patches/mesa-10.6.7-revert-4f531da.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
diff -Naur mesa-10.6.7/src/mesa/drivers/dri/i965/brw_meta_stencil_blit.c mesa-10.6.7.patch/src/mesa/drivers/dri/i965/brw_meta_stencil_blit.c
--- mesa-10.6.7/src/mesa/drivers/dri/i965/brw_meta_stencil_blit.c 2015-09-10 19:40:31.000000000 +0200
+++ mesa-10.6.7.patch/src/mesa/drivers/dri/i965/brw_meta_stencil_blit.c 2015-09-12 19:51:13.946585268 +0200
@@ -414,6 +414,12 @@
GLenum target;

_mesa_meta_fb_tex_blit_begin(ctx, &blit);
+ /* XXX: Pretend to support stencil textures so _mesa_base_tex_format()
+ * returns a valid format. When we properly support the extension, we
+ * should remove this.
+ */
+ assert(ctx->Extensions.ARB_texture_stencil8 == false);
+ ctx->Extensions.ARB_texture_stencil8 = true;

_mesa_GenFramebuffers(1, &fbo);
/* Force the surface to be configured for level zero. */
@@ -451,6 +457,7 @@
_mesa_DrawArrays(GL_TRIANGLE_FAN, 0, 4);

error:
+ ctx->Extensions.ARB_texture_stencil8 = false;
_mesa_meta_fb_tex_blit_end(ctx, target, &blit);
_mesa_meta_end(ctx);

0 comments on commit d0f7dba

Please sign in to comment.