diff options
author | Timothy Arceri <[email protected]> | 2017-12-16 14:06:23 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2018-01-30 09:08:47 +1100 |
commit | f63e05ae9ea0be38a8fb2dd0ae8f391b8699e757 (patch) | |
tree | a8560935b10101db258f692e50dff41efb996367 /src/compiler/shader_info.h | |
parent | f6cc15dccd54ff70be987457af790cac1c8fe5bb (diff) |
compiler: tidy up double_inputs_read uses
First we move double_inputs_read into a vs struct in the union,
double_inputs_read is only used for vs inputs so this will
save space and also allows us to add a new double_inputs field.
We add the new field because c2acf97fcc9b changed the behaviour
of double_inputs_read, and while it's no longer used to track
actual reads in i965 we do still want to track this for gallium
drivers.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/compiler/shader_info.h')
-rw-r--r-- | src/compiler/shader_info.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/compiler/shader_info.h b/src/compiler/shader_info.h index 4492cad0e8d..f6dedb8d624 100644 --- a/src/compiler/shader_info.h +++ b/src/compiler/shader_info.h @@ -67,8 +67,6 @@ typedef struct shader_info { /* Which inputs are actually read */ uint64_t inputs_read; - /* Which inputs are actually read and are double */ - uint64_t double_inputs_read; /* Which outputs are actually written */ uint64_t outputs_written; /* Which outputs are actually read */ @@ -110,6 +108,14 @@ typedef struct shader_info { union { struct { + /* Which inputs are doubles */ + uint64_t double_inputs; + + /* Which inputs are actually read and are double */ + uint64_t double_inputs_read; + } vs; + + struct { /** The number of vertices recieves per input primitive */ unsigned vertices_in; |