nir: deref only for OpTypePointer
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Wed, 20 Mar 2019 19:20:27 +0000 (19:20 +0000)
committerJuan A. Suarez Romero <jasuarez@igalia.com>
Wed, 20 Mar 2019 19:26:32 +0000 (19:26 +0000)
commitefcf9c9f9f01976ef19831fd05d4c48b080d0781
treecf9c6588cb3df97a824f7b5131422283bda0b4f9
parent04189565a01afbecc179fb4945a80754ee6fcfb4
nir: deref only for OpTypePointer

Fixes dEQP-VK.binding_model.buffer_device_address.* and
dEQP-VK.ssbo.phys.layout* Vulkan CTS tests.

v2: set val->type->stride in the section below (Jason)

v3: restore val->type->type to original place (Jason)

Fixes: d0ba326f238 ("nir/spirv: support physical pointers")
CC: Karol Herbst <kherbst@redhat.com>
CC: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/spirv/spirv_to_nir.c