mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
tgsi: fix parsing of shared memory declarations
The SHARED TGSI keyword is only allowed with TGSI_FILE_MEMORY and not
with TGSI_FILE_BUFFER. I have found this by using the nouveau_compiler
from command line.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "11.2" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit 7f8565f0b2)
This commit is contained in:
parent
41dbfcd1cd
commit
938e6dfdee
1 changed files with 3 additions and 1 deletions
|
|
@ -1388,7 +1388,9 @@ static boolean parse_declaration( struct translate_ctx *ctx )
|
||||||
if (str_match_nocase_whole(&cur, "ATOMIC")) {
|
if (str_match_nocase_whole(&cur, "ATOMIC")) {
|
||||||
decl.Declaration.Atomic = 1;
|
decl.Declaration.Atomic = 1;
|
||||||
ctx->cur = cur;
|
ctx->cur = cur;
|
||||||
} else if (str_match_nocase_whole(&cur, "SHARED")) {
|
}
|
||||||
|
} else if (file == TGSI_FILE_MEMORY) {
|
||||||
|
if (str_match_nocase_whole(&cur, "SHARED")) {
|
||||||
decl.Declaration.Shared = 1;
|
decl.Declaration.Shared = 1;
|
||||||
ctx->cur = cur;
|
ctx->cur = cur;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue