radv/xfb: don't increase offset by component mask start.
authorDave Airlie <airlied@redhat.com>
Wed, 31 Oct 2018 02:56:09 +0000 (02:56 +0000)
committerDave Airlie <airlied@redhat.com>
Wed, 31 Oct 2018 23:48:10 +0000 (23:48 +0000)
commitfcf15a007d7d32a9cce84f50cb024a638f7c092b
tree54f481476333d9cac476397f39d163e13c74069f
parentd25179469bd56b9319d5944d23e864e35528b552
radv/xfb: don't increase offset by component mask start.

This is incorrect, the offset is into the buffer, and it's legal
to write

loc 0,0 -> buffer0, offset 0
loc 0,1 -> buffer1, offset 0

This fixes a bunch of piglits running on my zink xfb code on
radv.

Fixes: 6c21645046 (radv: emit stream outputs for vertex and tessellation stages)
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_nir_to_llvm.c