mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 20:00:11 +01:00
intel: Perform gather on s8z24 texture images during glGetTexImage
Signed-off-by: Chad Versace <chad@chad-versace.us>
This commit is contained in:
parent
01e493980c
commit
951b75808e
1 changed files with 8 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue