[Piglit] [PATCH 4/4] arb_texture_view: Fill 2D array texture properly
Chris Forbes
chrisf at ijw.co.nz
Sat Jan 11 16:39:03 PST 2014
The depth only varies by miplevel for volume textures -- all miplevels
have the same number of layers for an array texture.
Previously we would fail to fill all but the first layers, and then
sample from whatever junk was in that memory. This might have worked by
accident on some hardware.
Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
---
tests/spec/arb_texture_view/rendering_target.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/spec/arb_texture_view/rendering_target.c b/tests/spec/arb_texture_view/rendering_target.c
index bff030d..20eb291 100644
--- a/tests/spec/arb_texture_view/rendering_target.c
+++ b/tests/spec/arb_texture_view/rendering_target.c
@@ -112,7 +112,7 @@ test_render_with_targets(GLenum target)
width /= 2;
if (height > 1)
height /= 2;
- if (depth > 1)
+ if (depth > 1 && target == GL_TEXTURE_3D)
depth /= 2;
}
--
1.8.5.2
More information about the Piglit
mailing list