glsl: fix buffer texture type

Fixes: 3ace6b968b ("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 87526f79db)
This commit is contained in:
Karol Herbst
2022-10-26 16:56:41 +02:00
committed by Dylan Baker
parent b2a3f0d469
commit 91c675a097
2 changed files with 2 additions and 2 deletions

View File

@@ -463,7 +463,7 @@
"description": "glsl: fix buffer texture type",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "3ace6b968b3254cb83c5e6ffef9864d300265339"
},

View 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;
}