From: Jarkko Pöyry Date: Sat, 25 Oct 2014 00:03:56 +0000 (-0700) Subject: Use invalid sample count in renderbuffer_storage_multisample negative case. X-Git-Tag: upstream/0.1.0~1788^2~69^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=36ebe43247b45ca9933ccc511c73c373a4fafe59;p=platform%2Fupstream%2FVK-GL-CTS.git Use invalid sample count in renderbuffer_storage_multisample negative case. Bug; 18100655 Change-Id: I9bd0417c44f3531755ec2ba1cc06f8164df50661 --- diff --git a/modules/gles31/functional/es31fNegativeBufferApiTests.cpp b/modules/gles31/functional/es31fNegativeBufferApiTests.cpp index 3c9e27b88..9f636238c 100644 --- a/modules/gles31/functional/es31fNegativeBufferApiTests.cpp +++ b/modules/gles31/functional/es31fNegativeBufferApiTests.cpp @@ -1396,8 +1396,11 @@ void renderbuffer_storage_multisample (NegativeTestContext& ctx) { deUint32 rbo = 0x1234; int maxSamplesSupportedRGBA4 = -1; + int maxSamplesSupportedRGBA8UI = -1; ctx.glGetInternalformativ (GL_RENDERBUFFER, GL_RGBA4, GL_SAMPLES, 1, &maxSamplesSupportedRGBA4); + ctx.glGetInternalformativ (GL_RENDERBUFFER, GL_RGBA8UI, GL_SAMPLES, 1, &maxSamplesSupportedRGBA8UI); + ctx.glGenRenderbuffers (1, &rbo); ctx.glBindRenderbuffer (GL_RENDERBUFFER, rbo); @@ -1427,8 +1430,8 @@ void renderbuffer_storage_multisample (NegativeTestContext& ctx) ctx.expectError (GL_INVALID_ENUM); ctx.endSection(); - ctx.beginSection("GL_INVALID_OPERATION is generated if internalformat is a signed or unsigned integer format and samples is greater than 0."); - ctx.glRenderbufferStorageMultisample (GL_RENDERBUFFER, 1, GL_RGBA8UI, 1, 1); + ctx.beginSection("GL_INVALID_OPERATION is generated if samples is greater than the maximum number of samples supported for internalformat. (Unsigned integer format)"); + ctx.glRenderbufferStorageMultisample (GL_RENDERBUFFER, maxSamplesSupportedRGBA8UI+1, GL_RGBA8UI, 1, 1); ctx.expectError (GL_INVALID_OPERATION); ctx.endSection();