diff options
author | Francisco Jerez <[email protected]> | 2015-07-14 15:43:44 +0300 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2015-07-16 18:31:01 +0300 |
commit | 4bddd82bf3dae44c2b75cef34e9e85e15d63df7f (patch) | |
tree | c52da53209e29cd5edc5e66657852f2439d26128 /src/mesa/drivers/dri/i965/intel_mipmap_tree.c | |
parent | b00cd6e4a0f9a84d514f428428be348900236e2e (diff) |
i965/fs: Factor out universally broken calculation of the register component size.
This in principle simple calculation was being open-coded in a number
of places (in a series I haven't yet sent for review there will be a
couple more), all of them were subtly broken in one way or another:
None of them were handling the HW_REG case correctly as pointed out by
Connor, and fs_inst::regs_read() was handling the stride=0 case rather
naively. This patch solves both problems and factors out the
calculation as a new fs_reg method.
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_mipmap_tree.c')
0 files changed, 0 insertions, 0 deletions