vallium: fix input attachment lowering variable shadowing
authorDave Airlie <airlied@redhat.com>
Tue, 18 Aug 2020 05:17:57 +0000 (15:17 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 19 Aug 2020 00:16:09 +0000 (10:16 +1000)
commit6c7383d315f615bb5f003e1af130112f964853cc
tree9b239047aec7657145c9ac3f79809c23c9a18a1d
parente0e9712a4d8008328578c0698157924a8aff0970
vallium: fix input attachment lowering variable shadowing

This caused a bunch of tests to crash due to pos being shadowed
wrongly.

Fixes:
dEQP-VK.binding_model.descriptor_copy.graphics.input_attachment*

Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Fixes: b38879f8c5f57b7f1802 ("vallium: initial import of the vulkan frontend")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6339>
src/gallium/frontends/vallium/val_lower_input_attachments.c