mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
i965/fs: Don't offset uniform registers in half().
Half gives you the second half of a SIMD16 register, but if the register is a uniform it would incorrectly give you the next register. Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
This commit is contained in:
parent
c74f2db0a5
commit
b5b18e4687
1 changed files with 4 additions and 0 deletions
|
|
@ -202,6 +202,10 @@ static inline fs_reg
|
|||
half(fs_reg reg, unsigned idx)
|
||||
{
|
||||
assert(idx < 2);
|
||||
|
||||
if (reg.file == UNIFORM)
|
||||
return reg;
|
||||
|
||||
assert(idx == 0 || (reg.file != HW_REG && reg.file != IMM));
|
||||
assert(reg.width == 16);
|
||||
reg.width = 8;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue