mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
glsl: Allow binding of image variables with 420pack.
This interaction was missed in the addition of ARB_image_load_store.
Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93266
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
(cherry picked from commit c200e606f7)
This commit is contained in:
parent
4acb394f45
commit
f35a84ba31
1 changed files with 3 additions and 1 deletions
|
|
@ -2281,7 +2281,9 @@ validate_binding_qualifier(struct _mesa_glsl_parse_state *state,
|
|||
|
||||
return false;
|
||||
}
|
||||
} else if (state->is_version(420, 310) && base_type->is_image()) {
|
||||
} else if ((state->is_version(420, 310) ||
|
||||
state->ARB_shading_language_420pack_enable) &&
|
||||
base_type->is_image()) {
|
||||
assert(ctx->Const.MaxImageUnits <= MAX_IMAGE_UNITS);
|
||||
if (max_index >= ctx->Const.MaxImageUnits) {
|
||||
_mesa_glsl_error(loc, state, "Image binding %d exceeds the "
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue