glsl: allow bindless images to be declared inside structures

The spec doesn't clearly state this, but I have got clarification
from the spec authors.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
Samuel Pitoiset 2017-04-19 16:44:19 +02:00
parent e1eb30975a
commit 48b7882200

View file

@ -6989,7 +6989,7 @@ ast_process_struct_or_iface_block_members(exec_list *instructions,
_mesa_glsl_error(&loc, state, "atomic counter in structure"); _mesa_glsl_error(&loc, state, "atomic counter in structure");
} }
if (decl_type->contains_image()) { if (!state->has_bindless() && decl_type->contains_image()) {
/* FINISHME: Same problem as with atomic counters. /* FINISHME: Same problem as with atomic counters.
* FINISHME: Request clarification from Khronos and add * FINISHME: Request clarification from Khronos and add
* FINISHME: spec quotation here. * FINISHME: spec quotation here.