glsl: fix buffer texture type
authorKarol Herbst <kherbst@redhat.com>
Wed, 26 Oct 2022 14:56:41 +0000 (16:56 +0200)
committerEric Engestrom <eric@engestrom.ch>
Thu, 17 Nov 2022 14:05:02 +0000 (14:05 +0000)
Fixes: 3ace6b968b3 ("compiler/types: Add a texture type")
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19381>
(cherry picked from commit 87526f79db68a13ebd448cfd6b1be4b25616c801)

.pick_status.json
src/compiler/glsl_types.cpp

index 21c9c8a..c030034 100644 (file)
         "description": "glsl: fix buffer texture type",
         "nominated": true,
         "nomination_type": 1,
-        "resolution": 0,
+        "resolution": 1,
         "main_sha": null,
         "because_sha": "3ace6b968b3254cb83c5e6ffef9864d300265339"
     },
index 63190ee..895a0d4 100644 (file)
@@ -1050,7 +1050,7 @@ glsl_type::get_texture_instance(enum glsl_sampler_dim dim,
       case GLSL_SAMPLER_DIM_3D:
          return (array ? error_type : vtexture3D_type);
       case GLSL_SAMPLER_DIM_BUF:
-         return (array ? error_type : vbuffer_type);
+         return (array ? error_type : vtextureBuffer_type);
       default:
          return error_type;
       }