summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2018-01-19 15:09:51 +1100
committerTimothy Arceri <[email protected]>2018-01-23 09:44:37 +1100
commit549ccbb4356730e096602048f53dea24220ff1d5 (patch)
tree85bd830024a677a5183cac1e1c3d458547e3c866 /src
parent324d2fe6a754e84df79db75cdbc3a8c4c32a7279 (diff)
nir: add image and sampler type to glsl_get_bit_size()
These are needed for ARB_bindless_texture support. Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/compiler/nir_types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/nir_types.h b/src/compiler/nir_types.h
index 4397c2406f9..e2dfd1ef5b7 100644
--- a/src/compiler/nir_types.h
+++ b/src/compiler/nir_types.h
@@ -102,6 +102,8 @@ glsl_get_bit_size(const struct glsl_type *type)
case GLSL_TYPE_DOUBLE:
case GLSL_TYPE_INT64:
case GLSL_TYPE_UINT64:
+ case GLSL_TYPE_IMAGE:
+ case GLSL_TYPE_SAMPLER:
return 64;
default: