mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 11:00:11 +01:00
nir: improve nir_variable packing
Before: /* size: 136, cachelines: 3, members: 10 */ After: /* size: 128, cachelines: 2, members: 10 */ Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Rob Clark <robdclark@chromium.org>
This commit is contained in:
parent
c412ff426b
commit
922801b77d
1 changed files with 3 additions and 1 deletions
|
|
@ -498,6 +498,9 @@ typedef struct nir_variable {
|
|||
} image;
|
||||
} data;
|
||||
|
||||
/* Number of nir_variable_data members */
|
||||
unsigned num_members;
|
||||
|
||||
/**
|
||||
* Built-in state that backs this uniform
|
||||
*
|
||||
|
|
@ -539,7 +542,6 @@ typedef struct nir_variable {
|
|||
* inputs each with their own layout specifier. This is only allowed on
|
||||
* variables with a struct or array of array of struct type.
|
||||
*/
|
||||
unsigned num_members;
|
||||
struct nir_variable_data *members;
|
||||
} nir_variable;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue