projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01e4939
)
intel: Perform gather on s8z24 texture images during glGetTexImage
author
Chad Versace
<chad@chad-versace.us>
Wed, 22 Jun 2011 04:42:48 +0000
(21:42 -0700)
committer
Chad Versace
<chad@chad-versace.us>
Fri, 24 Jun 2011 21:47:19 +0000
(14:47 -0700)
Signed-off-by: Chad Versace <chad@chad-versace.us>
src/mesa/drivers/dri/intel/intel_tex_image.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/intel/intel_tex_image.c
b/src/mesa/drivers/dri/intel/intel_tex_image.c
index 606523828b2a5983e8c917fc52bed7049fd72273..4a29bc5ac6bae35fdcfbf1e1f4a8764aa110d142 100644
(file)
--- a/
src/mesa/drivers/dri/intel/intel_tex_image.c
+++ b/
src/mesa/drivers/dri/intel/intel_tex_image.c
@@
-659,6
+659,14
@@
intel_get_tex_image(struct gl_context * ctx, GLenum target, GLint level,
assert(intelImage->base.Data);
}
+ if (intelImage->stencil_rb) {
+ /*
+ * The texture has packed depth/stencil format, but uses separate
+ * stencil. The texture's embedded stencil buffer contains the real
+ * stencil data, so copy that into the miptree.
+ */
+ intel_tex_image_s8z24_gather(intel, intelImage);
+ }
if (compressed) {
_mesa_get_compressed_teximage(ctx, target, level, pixels,