From: Marek Olšák Date: Tue, 17 Sep 2019 01:19:44 +0000 (-0400) Subject: tgsi_to_nir: handle PIPE_FORMAT_NONE in image opcodes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f704fb7f0ba5c230ec9558621484acebb927a315;p=mesa.git tgsi_to_nir: handle PIPE_FORMAT_NONE in image opcodes radeonsi doesn't use the format and internal shaders don't set it. Reviewed-By: Timur Kristóf --- diff --git a/src/gallium/auxiliary/nir/tgsi_to_nir.c b/src/gallium/auxiliary/nir/tgsi_to_nir.c index 88e9963e030..fca1074e6d2 100644 --- a/src/gallium/auxiliary/nir/tgsi_to_nir.c +++ b/src/gallium/auxiliary/nir/tgsi_to_nir.c @@ -1746,6 +1746,9 @@ static GLenum get_image_format(struct tgsi_full_instruction *tgsi_inst) { switch (tgsi_inst->Memory.Format) { + case PIPE_FORMAT_NONE: + return GL_NONE; + case PIPE_FORMAT_R8_UNORM: return GL_R8; case PIPE_FORMAT_R8G8_UNORM: