From: Marek Olšák Date: Wed, 18 Sep 2019 19:25:15 +0000 (-0400) Subject: nir: define 8-byte size and alignment for bindless variables X-Git-Tag: upstream/19.3.0~1704 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=780eeaf2f14ba5f6f48da04628e3de852ce7dbe8;p=platform%2Fupstream%2Fmesa.git nir: define 8-byte size and alignment for bindless variables Reviewed-by: Connor Abbott --- diff --git a/src/compiler/nir_types.cpp b/src/compiler/nir_types.cpp index a8ef045..817dae0 100644 --- a/src/compiler/nir_types.cpp +++ b/src/compiler/nir_types.cpp @@ -645,9 +645,14 @@ glsl_get_natural_size_align_bytes(const struct glsl_type *type, break; case GLSL_TYPE_SAMPLER: + case GLSL_TYPE_IMAGE: + /* Bindless samplers and images. */ + *size = 8; + *align = 8; + break; + case GLSL_TYPE_ATOMIC_UINT: case GLSL_TYPE_SUBROUTINE: - case GLSL_TYPE_IMAGE: case GLSL_TYPE_VOID: case GLSL_TYPE_ERROR: case GLSL_TYPE_INTERFACE: