[Mesa-dev] [RFC PATCH 10/26] glsl: fix up an assertion in has_lod() helper
Samuel Pitoiset
samuel.pitoiset at gmail.com
Tue Apr 11 16:48:21 UTC 2017
Used by the builtin functions area.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
src/compiler/glsl/builtin_functions.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/compiler/glsl/builtin_functions.cpp b/src/compiler/glsl/builtin_functions.cpp
index 62c9ac518b..b57823fa78 100644
--- a/src/compiler/glsl/builtin_functions.cpp
+++ b/src/compiler/glsl/builtin_functions.cpp
@@ -5178,7 +5178,7 @@ UNOP(not, ir_unop_logic_not, always_available)
static bool
has_lod(const glsl_type *sampler_type)
{
- assert(sampler_type->is_sampler());
+ assert(sampler_type->is_sampler() || sampler_type->is_bindless_sampler());
switch (sampler_type->sampler_dimensionality) {
case GLSL_SAMPLER_DIM_RECT:
--
2.12.2
More information about the mesa-dev
mailing list