From: Samuel Pitoiset Date: Thu, 30 Mar 2017 00:01:59 +0000 (+0200) Subject: tgsi/ureg: accept TGSI_FILE_{CONSTANT,INPUT} for dst registers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=556f70b404fea6d9abfbe2632c75e809bdf7b643;p=mesa.git tgsi/ureg: accept TGSI_FILE_{CONSTANT,INPUT} for dst registers For example, TGSI_OPCODE_STORE for bindless images might use a constant buffer or a shader input. Signed-off-by: Samuel Pitoiset Reviewed-by: Marek Olšák Reviewed-by: Nicolai Hähnle --- diff --git a/src/gallium/auxiliary/tgsi/tgsi_ureg.c b/src/gallium/auxiliary/tgsi/tgsi_ureg.c index 5bd779728a4..d2a0507d29b 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_ureg.c +++ b/src/gallium/auxiliary/tgsi/tgsi_ureg.c @@ -1140,8 +1140,6 @@ ureg_emit_dst( struct ureg_program *ureg, unsigned n = 0; assert(dst.File != TGSI_FILE_NULL); - assert(dst.File != TGSI_FILE_CONSTANT); - assert(dst.File != TGSI_FILE_INPUT); assert(dst.File != TGSI_FILE_SAMPLER); assert(dst.File != TGSI_FILE_SAMPLER_VIEW); assert(dst.File != TGSI_FILE_IMMEDIATE);