rusticl: require PIPE_CAP_IMAGE_STORE_FORMATTED for image support.

Luckily we don't need PIPE_CAP_IMAGE_LOAD_FORMATTED as this will only be
relevant for read_write image support.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30104>
This commit is contained in:
Karol Herbst 2024-07-10 15:01:58 +02:00 committed by Marge Bot
parent 382b88cbc4
commit d36b1e30a2

View file

@ -71,6 +71,7 @@ impl DeviceCaps {
let image_2d_size = screen.param(pipe_cap::PIPE_CAP_MAX_TEXTURE_2D_SIZE) as u32;
let has_images = screen.param(pipe_cap::PIPE_CAP_TEXTURE_SAMPLER_INDEPENDENT) != 0 &&
screen.param(pipe_cap::PIPE_CAP_IMAGE_STORE_FORMATTED) != 0 &&
// The minimum value is 8 if CL_DEVICE_IMAGE_SUPPORT is CL_TRUE
max_read_images >= 8 &&
// The minimum value is 8 if CL_DEVICE_IMAGE_SUPPORT is CL_TRUE