diff options
author | Topi Pohjolainen <topi.pohjolainen@intel.com> | 2016-03-01 09:01:18 +0200 |
---|---|---|
committer | Topi Pohjolainen <topi.pohjolainen@intel.com> | 2016-04-04 12:25:04 +0300 |
commit | 1b27e27c960591daa8af450938989e1b4fa07b10 (patch) | |
tree | 7ad475c8841b98a80b8d7d5bebcae094f16c0b91 /tests/texturing/texsubimage.c | |
parent | 5b2d801e2587a0996b60e26294f6f752330fbec9 (diff) |
texsubimage: Remove unnecessary clear
Not really needed as all the inspected pixels are overwritten
after the clear but before getting read back.
Allows one to reproduce 91926 on SKL with 100% probability:
texsubimage pbo manual GL_TEXTURE_2D GL_RGB8 6 10 0 94 53 0 -auto -fbo
6,10,0: test = 40,12,0,255 ref = 12,0,40,255 (comparing 8 bits)
texsubimage failed
target: GL_TEXTURE_2D
internal format: GL_RGB8
region: 6, 10 94 x 53
PIGLIT: {"result": "fail" }
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91926
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'tests/texturing/texsubimage.c')
-rw-r--r-- | tests/texturing/texsubimage.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/texturing/texsubimage.c b/tests/texturing/texsubimage.c index a0d811fce..0d4bcabc8 100644 --- a/tests/texturing/texsubimage.c +++ b/tests/texturing/texsubimage.c @@ -376,7 +376,6 @@ test_region(GLuint pbo, GLenum target, GLenum internal_format, glBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0); /* draw test image */ - glClear(GL_COLOR_BUFFER_BIT); draw_and_read_texture(w, h, d, test_img); glDeleteTextures(1, &tex); |