[Mesa-dev] [PATCH v2 08/31] glsl: allow bindless samplers/images as out and inout parameters
Nicolai Hähnle
nhaehnle at gmail.com
Wed Apr 26 07:18:33 UTC 2017
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
On 24.04.2017 12:35, Samuel Pitoiset wrote:
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
> src/compiler/glsl/ast_to_hir.cpp | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/compiler/glsl/ast_to_hir.cpp b/src/compiler/glsl/ast_to_hir.cpp
> index e4b076f700..24ad4b117c 100644
> --- a/src/compiler/glsl/ast_to_hir.cpp
> +++ b/src/compiler/glsl/ast_to_hir.cpp
> @@ -5548,7 +5548,8 @@ ast_parameter_declarator::hir(exec_list *instructions,
> * assigned into."
> */
> if ((var->data.mode == ir_var_function_inout || var->data.mode == ir_var_function_out)
> - && type->contains_opaque()) {
> + && (type->contains_atomic() ||
> + (!state->has_bindless() && type->contains_opaque()))) {
> _mesa_glsl_error(&loc, state, "out and inout parameters cannot "
> "contain opaque variables");
> type = glsl_type::error_type;
>
--
Lerne, wie die Welt wirklich ist,
Aber vergiss niemals, wie sie sein sollte.
More information about the mesa-dev
mailing list