mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Removed checking for supporting half (#2175)
Fixes https://github.com/KhronosGroup/OpenCL-CTS/issues/1982 according to description
This commit is contained in:
committed by
GitHub
parent
2ea4d165d5
commit
28da01788d
@@ -23,7 +23,6 @@
|
|||||||
#include <CL/cl_gl.h>
|
#include <CL/cl_gl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern int supportsHalf(cl_context context, bool *supports_half);
|
|
||||||
|
|
||||||
static int test_image_info(cl_context context, cl_command_queue queue,
|
static int test_image_info(cl_context context, cl_command_queue queue,
|
||||||
GLenum glTarget, GLuint glTexture, size_t imageWidth,
|
GLenum glTarget, GLuint glTexture, size_t imageWidth,
|
||||||
@@ -97,10 +96,6 @@ static int test_image_format_get_info(cl_context context,
|
|||||||
if (fmt->type == kHalf)
|
if (fmt->type == kHalf)
|
||||||
{
|
{
|
||||||
if (DetectFloatToHalfRoundingMode(queue)) return 0;
|
if (DetectFloatToHalfRoundingMode(queue)) return 0;
|
||||||
bool supports_half = false;
|
|
||||||
error = supportsHalf(context, &supports_half);
|
|
||||||
if (error != 0) return error;
|
|
||||||
if (!supports_half) return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t w = width, h = height, d = depth;
|
size_t w = width, h = height, d = depth;
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
#include <CL/cl_gl.h>
|
#include <CL/cl_gl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern int supportsHalf(cl_context context, bool *supports_half);
|
|
||||||
extern int supportsMsaa(cl_context context, bool *supports_msaa);
|
extern int supportsMsaa(cl_context context, bool *supports_msaa);
|
||||||
extern int supportsDepth(cl_context context, bool *supports_depth);
|
extern int supportsDepth(cl_context context, bool *supports_depth);
|
||||||
|
|
||||||
@@ -441,10 +440,6 @@ static int test_image_format_read(cl_context context, cl_command_queue queue,
|
|||||||
if (fmt->type == kHalf)
|
if (fmt->type == kHalf)
|
||||||
{
|
{
|
||||||
if (DetectFloatToHalfRoundingMode(queue)) return 1;
|
if (DetectFloatToHalfRoundingMode(queue)) return 1;
|
||||||
bool supports_half = false;
|
|
||||||
error = supportsHalf(context, &supports_half);
|
|
||||||
if (error != 0) return error;
|
|
||||||
if (!supports_half) return 0;
|
|
||||||
}
|
}
|
||||||
#ifdef GL_VERSION_3_2
|
#ifdef GL_VERSION_3_2
|
||||||
if (get_base_gl_target(target) == GL_TEXTURE_2D_MULTISAMPLE
|
if (get_base_gl_target(target) == GL_TEXTURE_2D_MULTISAMPLE
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ extern int test_cl_image_read(cl_context context, cl_command_queue queue,
|
|||||||
cl_image_format *outFormat, ExplicitType *outType,
|
cl_image_format *outFormat, ExplicitType *outType,
|
||||||
void **outResultBuffer);
|
void **outResultBuffer);
|
||||||
|
|
||||||
extern int supportsHalf(cl_context context, bool *supports_half);
|
|
||||||
|
|
||||||
static int test_attach_renderbuffer_read_image(
|
static int test_attach_renderbuffer_read_image(
|
||||||
cl_context context, cl_command_queue queue, GLenum glTarget,
|
cl_context context, cl_command_queue queue, GLenum glTarget,
|
||||||
|
|||||||
Reference in New Issue
Block a user