From aea935264a66fce07aee076b1987efc3606ad620 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 15 Apr 2022 16:35:41 -0500 Subject: [PATCH] shader_info: Bump the number of images and textures supported MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit OpenCL requires up to 128 read-only images and up to 64 write images. Reviewed-by: Marek Olšák Reviewed-by: Karol Herbst Part-of: --- src/compiler/shader_info.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/compiler/shader_info.h b/src/compiler/shader_info.h index 05eae55..ed3596b 100644 --- a/src/compiler/shader_info.h +++ b/src/compiler/shader_info.h @@ -197,20 +197,20 @@ typedef struct shader_info { uint64_t patch_outputs_accessed_indirectly; /** Bitfield of which textures are used */ - BITSET_DECLARE(textures_used, 32); + BITSET_DECLARE(textures_used, 128); /** Bitfield of which textures are used by texelFetch() */ - BITSET_DECLARE(textures_used_by_txf, 32); + BITSET_DECLARE(textures_used_by_txf, 128); /** Bitfield of which samplers are used */ BITSET_DECLARE(samplers_used, 32); /** Bitfield of which images are used */ - BITSET_DECLARE(images_used, 32); + BITSET_DECLARE(images_used, 64); /** Bitfield of which images are buffers. */ - BITSET_DECLARE(image_buffers, 32); + BITSET_DECLARE(image_buffers, 64); /** Bitfield of which images are MSAA. */ - BITSET_DECLARE(msaa_images, 32); + BITSET_DECLARE(msaa_images, 64); /* SPV_KHR_float_controls: execution mode for floating point ops */ uint16_t float_controls_execution_mode; -- 2.7.4