From 6a874d76153fc8d24f3c9ce312263d5653e4079a Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Sun, 18 Jun 2023 14:41:11 +0200 Subject: [PATCH] rusticl/format: drop req_for_3d_image_write_ext Signed-off-by: Karol Herbst Reviewed-by: Dave Airlie Reviewed-by: Nora Allen Part-of: --- src/gallium/frontends/rusticl/core/device.rs | 2 +- src/gallium/frontends/rusticl/core/format.rs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gallium/frontends/rusticl/core/device.rs b/src/gallium/frontends/rusticl/core/device.rs index f550822..5eb2fc8 100644 --- a/src/gallium/frontends/rusticl/core/device.rs +++ b/src/gallium/frontends/rusticl/core/device.rs @@ -718,7 +718,7 @@ impl Device { pub fn image_3d_write_supported(&self) -> bool { !FORMATS .iter() - .filter(|f| f.req_for_3d_image_write_ext) + .filter(|f| f.req_for_full_read_or_write) .map(|f| self.formats.get(&f.cl_image_format).unwrap()) .map(|f| f.get(&CL_MEM_OBJECT_IMAGE3D).unwrap()) .any(|f| *f & cl_mem_flags::from(CL_MEM_WRITE_ONLY) == 0) diff --git a/src/gallium/frontends/rusticl/core/format.rs b/src/gallium/frontends/rusticl/core/format.rs index b452bf2..7c8c63f 100644 --- a/src/gallium/frontends/rusticl/core/format.rs +++ b/src/gallium/frontends/rusticl/core/format.rs @@ -6,7 +6,6 @@ pub struct RusticlImageFormat { pub req_for_full_read_or_write: bool, pub req_for_embeded_read_or_write: bool, pub req_for_full_read_and_write: bool, - pub req_for_3d_image_write_ext: bool, pub pipe: pipe_format, } @@ -125,7 +124,6 @@ const fn rusticl_image_format( req_for_full_read_or_write: req_for_full_r_or_w(ch_order, ch_type), req_for_embeded_read_or_write: req_for_embedded_r_or_w(ch_order, ch_type), req_for_full_read_and_write: req_for_full_rw(ch_order, ch_type), - req_for_3d_image_write_ext: req_for_full_r_or_w(ch_order, ch_type), pipe: pipe, } } -- 2.7.4