Commit 780eeaf2 authored by Marek Olšák's avatar Marek Olšák

nir: define 8-byte size and alignment for bindless variables

Reviewed-by: default avatarConnor Abbott <cwabbott0@gmail.com>
parent f5c103ce
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment