mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 15:48:36 +02:00
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:
parent
382b88cbc4
commit
d36b1e30a2
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue