diff options
author | Neil Roberts <[email protected]> | 2016-01-21 17:12:29 +0000 |
---|---|---|
committer | Neil Roberts <[email protected]> | 2016-01-21 21:45:18 +0000 |
commit | 666d96d1697fc9a1452519285758cc16240290d2 (patch) | |
tree | 4c807f9a34952a402fa72414791829d130e55ef4 /src/mesa/main/vdpau.h | |
parent | 0153ff8379be789262ad9cd636080d92b77becad (diff) |
texobj: Fix the completeness checks for cube textures
According to the GL 1.4 spec section 3.8.10, a cubemap texture is only
complete if:
• The level base arrays of each of the six texture images making up
the cube map have identical, positive, and square dimensions.
• The level base arrays were each specified with the same internal
format.
• The level base arrays each have the same border width.
Previously the texture completeness code was only checking the first
point. This patch makes it additionally check the other two.
This fixes the following two dEQP tests:
deqp-gles2.functional.texture.completeness.cube.format_mismatch_rgba_rgb_level_0_neg_z
deqp-gles2.functional.texture.completeness.cube.format_mismatch_rgb_rgba_level_0_pos_z
And also this Piglit test:
spec/!opengl 2.0/incomplete-cubemap-format
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93792
Cc: Ilia Mirkin <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/vdpau.h')
0 files changed, 0 insertions, 0 deletions