From f704fb7f0ba5c230ec9558621484acebb927a315 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Mon, 16 Sep 2019 21:19:44 -0400 Subject: [PATCH] tgsi_to_nir: handle PIPE_FORMAT_NONE in image opcodes MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit radeonsi doesn't use the format and internal shaders don't set it. Reviewed-By: Timur Kristóf --- src/gallium/auxiliary/nir/tgsi_to_nir.c | 3 +++ 1 file changed, 3 insertions(+) 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: -- 2.30.2