nir/xfb: add component_offset at nir_xfb_info
authorAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 6 Nov 2018 17:10:01 +0000 (18:10 +0100)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Fri, 8 Mar 2019 14:00:50 +0000 (15:00 +0100)
commitb62a8149abc9dd4ecef0b888d3a6bf04203231f4
treec78e47d6990f7245ea433e9c0fe408d7397b955b
parente72daf3e7023246fc960cb5e375ae81313f7803b
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 <tarceri@itsqueeze.com>
src/compiler/nir/nir_gather_xfb_info.c
src/compiler/nir/nir_xfb_info.h