summaryrefslogtreecommitdiffstats
path: root/src/intel/compiler/brw_vec4.cpp
diff options
context:
space:
mode:
authorSamuel Iglesias Gonsálvez <[email protected]>2017-04-19 10:35:07 +0200
committerSamuel Iglesias Gonsálvez <[email protected]>2017-05-18 06:49:54 +0200
commit8aa6ada8384a961b37dfefec7f9e40e5a4e27ce7 (patch)
tree3777d63c5880cd64337654759940225c5d1084c6 /src/intel/compiler/brw_vec4.cpp
parent354f7f2cb9c7206e12646c79d8ff5becbaffa61b (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 'src/intel/compiler/brw_vec4.cpp')
0 files changed, 0 insertions, 0 deletions