r600: fixup sparse color exports.
authorDave Airlie <airlied@redhat.com>
Mon, 5 Feb 2018 04:55:07 +0000 (14:55 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 6 Feb 2018 20:16:59 +0000 (06:16 +1000)
commit6c691081a183aec51d5305592b9fa391ebb447ab
tree2106e3a506145803ac9c4efbfaf6d50457c1857f
parent2d5b5d267e1b0997ebe9fe7bcc06f6b79af48e43
r600: fixup sparse color exports.

If we have gaps in the shader mask we have to have 0x1 in them
according to a comment in radeonsi, and this is required to fix
the test at least on cayman.

We also need to record the highest one written to write to the
ps exports reg.

This fixes:
KHR-GL45.enhanced_layouts.fragment_data_location_api

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_shader.c
src/gallium/drivers/r600/r600_shader.h