nv50/ir/nir: fix nv_viewport_array2
authorKarol Herbst <kherbst@redhat.com>
Mon, 15 Jun 2020 00:52:47 +0000 (02:52 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 22 Jun 2020 11:41:31 +0000 (11:41 +0000)
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

index 84833a0ade9b96984ffa55f842b8308c5ea3ca35..40c1c526224eba9e97d496b52602d2a5d20b78c2 100644 (file)
@@ -1256,6 +1256,7 @@ Converter::parseNIR()
    info->bin.tlsSpace = 0;
    info->io.clipDistances = nir->info.clip_distance_array_size;
    info->io.cullDistances = nir->info.cull_distance_array_size;
+   info->io.layer_viewport_relative = nir->info.layer_viewport_relative;
 
    switch(prog->getType()) {
    case Program::TYPE_COMPUTE: