nvc0: collapse output slots to have adjacent registers
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 5 Feb 2018 05:15:58 +0000 (00:15 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 27 Feb 2018 05:10:39 +0000 (00:10 -0500)
commite683a797c6881ddb3b07cad8fdb84f77c6655c95
tree6d7f05b94e643380c561a1e6536df6d75478707a
parent250468f6b7bb85b6c0097120ec9860d9185fd03a
nvc0: collapse output slots to have adjacent registers

The hardware skips over unallocated slots, so we have to make sure those
registers are packed together.

Fixes KHR-GL45.enhanced_layouts.fragment_data_location_api

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Tested-by: Karol Herbst <kherbst@redhat.com>
src/gallium/drivers/nouveau/nvc0/nvc0_program.c