nir: add image and sampler type to glsl_get_bit_size()
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 19 Jan 2018 04:09:51 +0000 (15:09 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Mon, 22 Jan 2018 22:44:37 +0000 (09:44 +1100)
These are needed for ARB_bindless_texture support.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/compiler/nir_types.h

index 4397c2406f9a994a6ed79b091725e1f5f1954bff..e2dfd1ef5b7fbbb641efbcc86ea02fbeac1f8609 100644 (file)
@@ -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: