Skip to content

Commit

Permalink
Removed checking for supporting half (#2175)
Browse files Browse the repository at this point in the history
Fixes #1982 according
to description
  • Loading branch information
kamil-goras-mobica authored Jan 7, 2025
1 parent 2ea4d16 commit 28da017
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
5 changes: 0 additions & 5 deletions test_conformance/gl/test_images_getinfo_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <CL/cl_gl.h>
#endif

extern int supportsHalf(cl_context context, bool *supports_half);

static int test_image_info(cl_context context, cl_command_queue queue,
GLenum glTarget, GLuint glTexture, size_t imageWidth,
Expand Down Expand Up @@ -97,10 +96,6 @@ static int test_image_format_get_info(cl_context context,
if (fmt->type == kHalf)
{
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;
Expand Down
5 changes: 0 additions & 5 deletions test_conformance/gl/test_images_read_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <CL/cl_gl.h>
#endif

extern int supportsHalf(cl_context context, bool *supports_half);
extern int supportsMsaa(cl_context context, bool *supports_msaa);
extern int supportsDepth(cl_context context, bool *supports_depth);

Expand Down Expand Up @@ -441,10 +440,6 @@ static int test_image_format_read(cl_context context, cl_command_queue queue,
if (fmt->type == kHalf)
{
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
if (get_base_gl_target(target) == GL_TEXTURE_2D_MULTISAMPLE
Expand Down
1 change: 0 additions & 1 deletion test_conformance/gl/test_renderbuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ extern int test_cl_image_read(cl_context context, cl_command_queue queue,
cl_image_format *outFormat, ExplicitType *outType,
void **outResultBuffer);

extern int supportsHalf(cl_context context, bool *supports_half);

static int test_attach_renderbuffer_read_image(
cl_context context, cl_command_queue queue, GLenum glTarget,
Expand Down

0 comments on commit 28da017

Please sign in to comment.