-
Notifications
You must be signed in to change notification settings - Fork 887
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Stephan Raue <stephan@openelec.tv>
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
packages/graphics/mesa/patches/mesa-10.6.7-revert-4f531da.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|