projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5c103c
)
nir: define 8-byte size and alignment for bindless variables
author
Marek Olšák
<marek.olsak@amd.com>
Wed, 18 Sep 2019 19:25:15 +0000
(15:25 -0400)
committer
Marek Olšák
<marek.olsak@amd.com>
Mon, 23 Sep 2019 19:34:22 +0000
(15:34 -0400)
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/compiler/nir_types.cpp
patch
|
blob
|
history
diff --git
a/src/compiler/nir_types.cpp
b/src/compiler/nir_types.cpp
index a8ef04581340aefc069c93f506770b475910a795..817dae09e7b9593950604cc21aec91ba239e507f 100644
(file)
--- 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: