summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_xfb_info.h
diff options
context:
space:
mode:
authorAlejandro Piñeiro <[email protected]>2018-11-06 18:10:01 +0100
committerAlejandro Piñeiro <[email protected]>2019-03-08 15:00:50 +0100
commitb62a8149abc9dd4ecef0b888d3a6bf04203231f4 (patch)
treec78e47d6990f7245ea433e9c0fe408d7397b955b /src/compiler/nir/nir_xfb_info.h
parente72daf3e7023246fc960cb5e375ae81313f7803b (diff)
nir/xfb: add component_offset at nir_xfb_info
Where component_offset here is the offset when accessing components of a packed variable. Or in other words, location_frac on nir.h. Different places of mesa use different names for it. Technically nir_xfb_info consumer can get the same from the component_mask, it seems somewhat forced to make it to compute it, instead of providing it. v2: rename local location_frac for comp_offset, more similar to the intended use (Timothy Arceri) Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_xfb_info.h')
-rw-r--r--src/compiler/nir/nir_xfb_info.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_xfb_info.h b/src/compiler/nir/nir_xfb_info.h
index 6b16ce2a60a..c6a171fde34 100644
--- a/src/compiler/nir/nir_xfb_info.h
+++ b/src/compiler/nir/nir_xfb_info.h
@@ -34,6 +34,7 @@ typedef struct {
uint16_t offset;
uint8_t location;
uint8_t component_mask;
+ uint8_t component_offset;
} nir_xfb_output_info;
typedef struct nir_xfb_info {