From f704fb7f0ba5c230ec9558621484acebb927a315 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Mon, 16 Sep 2019 21:19:44 -0400 Subject: tgsi_to_nir: handle PIPE_FORMAT_NONE in image opcodes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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(+) (limited to 'src/gallium/auxiliary/nir') 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: -- cgit v1.2.3