mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
nir: define 8-byte size and alignment for bindless variables
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
This commit is contained in:
parent
f5c103ce1d
commit
780eeaf2f1
1 changed files with 6 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue