glsl: fix buffer texture type
authorKarol Herbst <kherbst@redhat.com>
Wed, 26 Oct 2022 14:56:41 +0000 (16:56 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 10 Nov 2022 10:21:34 +0000 (10:21 +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>

src/compiler/glsl_types.cpp

index 65409ddbfd7ba86d2b6e1df7cdfd34000d57ba63..ef87e82d45e9e421b4155117f544ecdd80a25ecd 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;
       }