projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b160acb
)
nir: move data.descriptor_set above data.index for better packing
author
Marek Olšák
<marek.olsak@amd.com>
Thu, 7 Nov 2019 23:02:06 +0000
(18:02 -0500)
committer
Marek Olšák
<marek.olsak@amd.com>
Tue, 19 Nov 2019 23:20:10 +0000
(18:20 -0500)
4 bytes down
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/compiler/nir/nir.h
patch
|
blob
|
history
diff --git
a/src/compiler/nir/nir.h
b/src/compiler/nir/nir.h
index 31d611a620d34fb73feadf199fd1b90a352a4028..29ef2ce0d7d9a9ef8881a08457f816c43fd08c0d 100644
(file)
--- a/
src/compiler/nir/nir.h
+++ b/
src/compiler/nir/nir.h
@@
-437,14
+437,14
@@
typedef struct nir_variable {
enum gl_access_qualifier access:8;
/**
- *
output index for dual source blending
.
+ *
Descriptor set binding for sampler or UBO
.
*/
- unsigned
index
;
+ unsigned
descriptor_set:5
;
/**
- *
Descriptor set binding for sampler or UBO
.
+ *
output index for dual source blending
.
*/
- unsigned
descriptor_set:5
;
+ unsigned
index
;
/**
* Initial binding point for a sampler or UBO.