mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 15:48:36 +02:00
meta: Fallback to software for GetTexImage of compressed GL_TEXTURE_CUBE_MAP_ARRAY
The hardware decompression path isn't even close to being able to handle
this. This converts the crash (assertion failure) in
"EXT_texture_compression_s3tc/getteximage-targets S3TC CUBE_ARRAY" to a
plain old failure.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Cc: "9.1 9.2 10.0" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit 070f55d893)
This commit is contained in:
parent
a4a8af4cbb
commit
89c6473ff0
1 changed files with 2 additions and 1 deletions
|
|
@ -4165,7 +4165,8 @@ _mesa_meta_GetTexImage(struct gl_context *ctx,
|
|||
* unsigned, normalized values. We could handle signed and unnormalized
|
||||
* with floating point renderbuffers...
|
||||
*/
|
||||
if (_mesa_is_format_compressed(texImage->TexFormat) &&
|
||||
if (texImage->TexObject->Target != GL_TEXTURE_CUBE_MAP_ARRAY
|
||||
&& _mesa_is_format_compressed(texImage->TexFormat) &&
|
||||
_mesa_get_format_datatype(texImage->TexFormat)
|
||||
== GL_UNSIGNED_NORMALIZED) {
|
||||
struct gl_texture_object *texObj = texImage->TexObject;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue