Mesa (master): nir: add image and sampler type to glsl_get_bit_size()

Timothy Arceri tarceri at kemper.freedesktop.org
Mon Jan 22 22:47:58 UTC 2018


Module: Mesa
Branch: master
Commit: 549ccbb4356730e096602048f53dea24220ff1d5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=549ccbb4356730e096602048f53dea24220ff1d5

Author: Timothy Arceri <tarceri at itsqueeze.com>
Date:   Fri Jan 19 15:09:51 2018 +1100

nir: add image and sampler type to glsl_get_bit_size()

These are needed for ARB_bindless_texture support.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

---

 src/compiler/nir_types.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/compiler/nir_types.h b/src/compiler/nir_types.h
index 4397c2406f..e2dfd1ef5b 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:




More information about the mesa-commit mailing list