Module: Mesa
Branch: main
Commit: aea935264a66fce07aee076b1987efc3606ad620
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=aea935264a66fce07aee076b1987efc3606ad620

Author: Jason Ekstrand <[email protected]>
Date:   Fri Apr 15 16:35:41 2022 -0500

shader_info: Bump the number of images and textures supported

OpenCL requires up to 128 read-only images and up to 64 write images.

Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Karol Herbst <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15988>

---

 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 05eae55c08a..ed3596b1f3e 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;

Reply via email to