nv50/ir/nir: add workaround for double vertex attribs
authorKarol Herbst <kherbst@redhat.com>
Sun, 14 Jun 2020 09:46:46 +0000 (11:46 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 22 Jun 2020 11:41:31 +0000 (11:41 +0000)
commitaecca24d03a84fda14dc86b548304e6aaf250984
treee4e6b32368e682321c3392df434480f7727a274a
parent83d2a73b73a58006d9835a93a64c3946a5923cda
nv50/ir/nir: add workaround for double vertex attribs

Gallium adjusts the vertrix attrib types for doubles, but can run out of
bounds this way. As the slot is counted from 0 anyway, just fix it.

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Tested-by: Ben Skeggs <bskeggs@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5512>
src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp