/[packages]/cauldron/mesa/current/SOURCES/0043-gallium-ttn-Fix-setup-of-outputs_written.patch
ViewVC logotype

Contents of /cauldron/mesa/current/SOURCES/0043-gallium-ttn-Fix-setup-of-outputs_written.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1355920 - (show annotations) (download)
Sun Jan 13 14:22:00 2019 UTC (5 years, 3 months ago) by tmb
File size: 1272 byte(s)
add current fixes from upstream staging/18.3 branch
1 From 4569cec1737e6e57c82417f624a12ed1edd290ce Mon Sep 17 00:00:00 2001
2 From: Eric Anholt <eric@anholt.net>
3 Date: Thu, 20 Dec 2018 08:12:50 -0800
4 Subject: [PATCH 43/78] gallium/ttn: Fix setup of outputs_written.
5
6 We need a 64-bit value, otherwise we only handle the low 32, and happen to
7 sign-extend to claim to write all varying slots if VARYING_SLOT_VAR2 was
8 used.
9
10 Fixes: 4d0b2c7aaac3 ("ttn: Update shader->info as we generate code.")
11 Reviewed-by: Rob Clark <robdclark@gmail.com>
12 (cherry picked from commit 7d7ecfbcbc2236ba76d9ad9dc7c589ce5a6bfa32)
13 ---
14 src/gallium/auxiliary/nir/tgsi_to_nir.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17 diff --git a/src/gallium/auxiliary/nir/tgsi_to_nir.c b/src/gallium/auxiliary/nir/tgsi_to_nir.c
18 index 0ad274b535..4fa36cc7de 100644
19 --- a/src/gallium/auxiliary/nir/tgsi_to_nir.c
20 +++ b/src/gallium/auxiliary/nir/tgsi_to_nir.c
21 @@ -375,7 +375,7 @@ ttn_emit_declaration(struct ttn_compile *c)
22 c->outputs[idx] = var;
23
24 for (int i = 0; i < array_size; i++)
25 - b->shader->info.outputs_written |= 1 << (var->data.location + i);
26 + b->shader->info.outputs_written |= 1ull << (var->data.location + i);
27 }
28 break;
29 case TGSI_FILE_CONSTANT:
30 --
31 2.20.1
32

  ViewVC Help
Powered by ViewVC 1.1.30