tgsi/scan: handle holes between VS inputs, assert-fail in other cases
authorMarek Olšák <marek.olsak@amd.com>
Mon, 22 Feb 2016 23:37:39 +0000 (00:37 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 23 Feb 2016 15:42:16 +0000 (16:42 +0100)
commit190a291b03f799471110f95ae8a4d519d309696d
tree1a784f889fe2a95081ea53d9b400cabcb126a5f4
parent31a0affa280ef06261a2ed0135f72a7accc1bac6
tgsi/scan: handle holes between VS inputs, assert-fail in other cases

"st/mesa: overhaul vertex setup for clearing, glDrawPixels, glBitmap"
added a vertex shader declaring IN[0] and IN[2], but not IN[1].

Drivers relying on tgsi_shader_info can't handle holes in declarations,
because tgsi_shader_info doesn't track that.

This is just a quick workaround meant for stable that will work for vertex
shaders.

This fixes radeonsi DrawPixels and CopyPixels crashes.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/tgsi/tgsi_scan.c