glsl_to_nir: support conversion of opaque function params

Here we can assume anything that is not an input is bindless.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27108>
This commit is contained in:
Timothy Arceri
2024-01-18 14:35:28 +11:00
parent de7574f70a
commit c6c150b4cd
2 changed files with 26 additions and 27 deletions
-13
View File
@@ -2618,19 +2618,6 @@ public:
unsupported = true;
return visit_stop;
}
/* For opaque types, we want the inlined variable references
* referencing the passed in variable, since that will have
* the location information, which an assignment of an opaque
* variable wouldn't.
*
* We have no way to handle this in NIR or the glsl to nir pass
* currently so let the GLSL IR lowering handle it.
*/
if (glsl_contains_opaque(param->type)) {
unsupported = true;
return visit_stop;
}
}
return visit_continue;