Skip to content

clEnqueueFillImage fill_color data type #2

@James-Norton

Description

@James-Norton

I have a question about the clEnqueueFillImage tests. It looks like the test is always passing in floating point types for the fill_color, but it uses a variety of different cl_channel_type enums.

According to the spec:

"The fill color is a four component RGBA floating-point color value if
the image channel data type is not an unnormalized signed and unsigned integer type, is a four
component signed integer value if the image channel data type is an unnormalized signed integer
type and is a four component unsigned integer value if the image channel data type is an
unnormalized unsigned integer type. The fill color will be converted to the appropriate image
channel format and order associated with image"

So as far as I can tell, the driver isn't expected to perform a conversion from float to anything else, but that appears to be what the test expects. Can somebody please point me to an explanation for the behavior, or flag this as a bug in the test? I am looking at the CL 1.2 branch. Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions