radeonsi: fix UNSIGNED_BYTE index buffer fallback with non-zero start (v2)
authorMarek Olšák <marek.olsak@amd.com>
Wed, 15 Feb 2017 16:24:38 +0000 (17:24 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Sun, 19 Feb 2017 16:16:26 +0000 (17:16 +0100)
commita264fee6245856340fab9024e1a428626e966335
treeedc669689484b399b5bd8775ead8a3be23bc306d
parent9aec76aca3307c2d00f2bcd9f37c7cf3ca181dfb
radeonsi: fix UNSIGNED_BYTE index buffer fallback with non-zero start (v2)

start can only be non-zero with MultiDrawElements, which is unlikely
to occur with UNSIGNED_BYTE indices.

v2: Also fix the util_shorten_ubyte_elts_to_userptr call.
    Tested with the new piglit.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_state_draw.c