Skip to content
Snippets Groups Projects
Commit 5469fc98 authored by Nicolai Hähnle's avatar Nicolai Hähnle Committed by Emil Velikov
Browse files

st/mesa: an incomplete texture may have a zero-size first image

Fixes a regression introduced by commit 42624ea8 which triggered
an assertion in
dEQP-GLES2.functional.texture.completeness.cube.not_positive_level_0

While stImage must have a non-zero size as verified by the caller, we also
look at the size of the base image in an attempt to make a better guess at
the level0 size (this is important when the base image size is odd). However,
the base image may have a zero size even when it exists.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96629


Cc: 12.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: default avatarIlia Mirkin <imirkin@alum.mit.edu>
(cherry picked from commit 0ba053b3)
parent 951be8a5
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment