diff options
author | Samuel Iglesias Gonsálvez <[email protected]> | 2017-04-19 10:35:07 +0200 |
---|---|---|
committer | Samuel Iglesias Gonsálvez <[email protected]> | 2017-05-18 06:49:54 +0200 |
commit | 8aa6ada8384a961b37dfefec7f9e40e5a4e27ce7 (patch) | |
tree | 3777d63c5880cd64337654759940225c5d1084c6 /scons/custom.py | |
parent | 354f7f2cb9c7206e12646c79d8ff5becbaffa61b (diff) |
i965/vec4: fix swizzle and writemask when loading an uniform with constant offset
It was setting XYWZ swizzle and writemask to all uniforms, no matter if they
were a vector or scalar, so this can lead to problems when loading them
to the push constant buffer.
Moreover, 'shift' calculation was designed to calculate the offset in
DWORDS, but it doesn't take into account DFs, so the calculated swizzle
for the later ones was wrong.
The indirect case is not changed because MOV INDIRECT will write
to all components. Added an assert to verify that these uniforms
are aligned.
v2:
- Fix 'shift' calculation (Curro)
- Set both swizzle and writemask.
- Add assert(shift == 0) for the indirect case.
Signed-off-by: Samuel Iglesias Gonsálvez <[email protected]>
Cc: "17.1" <[email protected]>
Reviewed-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'scons/custom.py')
0 files changed, 0 insertions, 0 deletions