summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-09-16 21:19:44 -0400
committerMarek Olšák <[email protected]>2019-09-30 14:20:48 -0400
commitf704fb7f0ba5c230ec9558621484acebb927a315 (patch)
treeee494627e7e66a2c6f2236b417120b7b711e49fc /src
parent3b265f61f5f61f08718fe5bb4b2726f9b8e016cc (diff)
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/nir/tgsi_to_nir.c3
1 files changed, 3 insertions, 0 deletions
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: