mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-24 07:59:01 +00:00
Fix test_gl error reporting (#764)
* Fix test_gl error reporting Overwriting 'error' variable after check for Msaa/Depth support was clearing the error counter incremented after failure in test_image_format_write. In effect the test might return 0 even if there were errors. * Fix variable name * Fix formatting * Fix formatting
This commit is contained in:
committed by
GitHub
parent
cfe4e41d96
commit
ee2d0921dc
@@ -763,16 +763,16 @@ int test_images_write_common(cl_device_id device, cl_context context,
|
|||||||
get_base_gl_target(targets[ tidx ]) == GL_TEXTURE_2D_MULTISAMPLE_ARRAY)
|
get_base_gl_target(targets[ tidx ]) == GL_TEXTURE_2D_MULTISAMPLE_ARRAY)
|
||||||
{
|
{
|
||||||
bool supports_msaa;
|
bool supports_msaa;
|
||||||
error = supportsMsaa(context, &supports_msaa);
|
int errorInGetInfo = supportsMsaa(context, &supports_msaa);
|
||||||
if( error != 0 ) return error;
|
if (errorInGetInfo != 0) return errorInGetInfo;
|
||||||
if (!supports_msaa) return 0;
|
if (!supports_msaa) return 0;
|
||||||
}
|
}
|
||||||
if (formats[ fidx ].formattype == GL_DEPTH_COMPONENT ||
|
if (formats[ fidx ].formattype == GL_DEPTH_COMPONENT ||
|
||||||
formats[ fidx ].formattype == GL_DEPTH_STENCIL)
|
formats[ fidx ].formattype == GL_DEPTH_STENCIL)
|
||||||
{
|
{
|
||||||
bool supports_depth;
|
bool supports_depth;
|
||||||
error = supportsDepth(context, &supports_depth);
|
int errorInGetInfo = supportsDepth(context, &supports_depth);
|
||||||
if( error != 0 ) return error;
|
if (errorInGetInfo != 0) return errorInGetInfo;
|
||||||
if (!supports_depth) return 0;
|
if (!supports_depth) return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user