-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sampler using unnormalised coordinates and 3d images #1202
Comments
rjodinchr
added a commit
to rjodinchr/clspv
that referenced
this issue
Aug 31, 2023
We cannot use unormalized sampled with 3D images. This commit intend to fix that for literal sampler (static sampler defined in the kernel). When detecting a case of reading a image3d with a literal sampler using unnormalized coordinate: - create a equivalent sampler using normalized coordinate - normalized the coordinate Ref google#1202
rjodinchr
added a commit
to rjodinchr/clspv
that referenced
this issue
Sep 6, 2023
We cannot use unormalized sampled with 3D images. This commit intend to fix that for literal sampler (static sampler defined in the kernel). When detecting a case of reading a image3d with a literal sampler using unnormalized coordinate: - create a equivalent sampler using normalized coordinate - normalized the coordinate Ref google#1202
rjodinchr
added a commit
to rjodinchr/clspv
that referenced
this issue
Sep 6, 2023
We cannot use unormalized sampled with 3D images. This commit intend to fix that for literal sampler (static sampler defined in the kernel). When detecting a case of reading a image3d with a literal sampler using unnormalized coordinate: - create a equivalent sampler using normalized coordinate - normalized the coordinate Ref google#1202
rjodinchr
added a commit
to rjodinchr/clspv
that referenced
this issue
Sep 7, 2023
We cannot use unormalized sampled with 3D images. This commit intend to fix that for literal sampler (static sampler defined in the kernel). When detecting a case of reading a image3d with a literal sampler using unnormalized coordinate: - create a equivalent sampler using normalized coordinate - normalized the coordinate Ref google#1202
alan-baker
pushed a commit
that referenced
this issue
Sep 7, 2023
…1215) We cannot use unormalized sampled with 3D images. This commit intend to fix that for literal sampler (static sampler defined in the kernel). When detecting a case of reading a image3d with a literal sampler using unnormalized coordinate: - create a equivalent sampler using normalized coordinate - normalized the coordinate Ref #1202
rjodinchr
added a commit
to rjodinchr/SPIRV-Headers
that referenced
this issue
Sep 11, 2023
This is needed to implement 3D Image read using unnormalised sampler. Ref google/clspv#1202
This was referenced Sep 20, 2023
alan-baker
pushed a commit
to KhronosGroup/SPIRV-Headers
that referenced
this issue
Oct 11, 2023
) This is needed to implement 3D Image read using unnormalised sampler. Ref google/clspv#1202
I think for clspv, everything has been done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A sampler using unnormalised coordinates cannot be used to read/write 3d images:
Here is my current plan to fix it:
const sampler_t my_sampler = CLK_ADDRESS_CLAMP | CLK_FILTER_NEAREST | CLK_NORMALIZED_COORDS_FALSE;
kernel void foo(read_only image3d image, sampler_t sampler)
The text was updated successfully, but these errors were encountered: