Skip to content

[Bindless] Fix fetch_image on sampled handles to use sampled image path - #22955

Open
Seanst98 wants to merge 1 commit into
intel:syclfrom
Seanst98:sean/fix-sampled-fetch
Open

[Bindless] Fix fetch_image on sampled handles to use sampled image path#22955
Seanst98 wants to merge 1 commit into
intel:syclfrom
Seanst98:sean/fix-sampled-fetch

Conversation

@Seanst98

Copy link
Copy Markdown
Contributor

fetch_image on a sampled_image_handle was incorrectly going through FETCH_UNSAMPLED_IMAGE + CONVERT_HANDLE_TO_IMAGE. Correct to FETCH_SAMPLED_IMAGE + CONVERT_HANDLE_TO_SAMPLED_IMAGE.

Previously, these fetch_image calls would translate to an OpImageRead which is incorrect for a sampled image and instead should translate to an OpImageFetch.

…th (intel#86)

fetch_image on a sampled_image_handle was incorrectly going through
FETCH_UNSAMPLED_IMAGE + CONVERT_HANDLE_TO_IMAGE. Correct to
FETCH_SAMPLED_IMAGE + CONVERT_HANDLE_TO_SAMPLED_IMAGE.
@Seanst98
Seanst98 requested a review from a team as a code owner August 17, 2026 16:19
@Seanst98
Seanst98 requested a review from dyniols August 17, 2026 16:19
@Seanst98 Seanst98 changed the title [Bindless] Fix fetch_image on sampled handles to use sampled image path (#86) [Bindless] Fix fetch_image on sampled handles to use sampled image path Aug 17, 2026
@dyniols

dyniols commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

@Seanst98 Hi, test sycl/test-e2e/bindless_images/sampled_fetch/fetch_2D_USM_device.cpp is failing in CI. Could you take a look? I have started looking at the change and I wonder if we need some other change to fix it. I believe that the fetch_image call is being incorrectly lowered to OpImageSampleExplicitLod instead of OpImageFetch.

@dyniols dyniols added the sycl-bindless-images SYCL Bindless Images label Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sycl-bindless-images SYCL Bindless Images

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants