tgsi: fix parsing of shared memory declarations
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 7 Mar 2016 17:52:19 +0000 (18:52 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 7 Mar 2016 21:13:08 +0000 (22:13 +0100)
commit7f8565f0b2bf54a8106ae9080386bb186609713d
tree03b0bacd567cea022375d4ea7fce40c07d1ec769
parentc82086f7e9e251a7ad60f6aa1f64f011b14720b6
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>
src/gallium/auxiliary/tgsi/tgsi_text.c