diff options
author | Marek Olšák <[email protected]> | 2019-09-16 21:19:44 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-09-30 14:20:48 -0400 |
commit | f704fb7f0ba5c230ec9558621484acebb927a315 (patch) | |
tree | ee494627e7e66a2c6f2236b417120b7b711e49fc /src/gallium/auxiliary/nir | |
parent | 3b265f61f5f61f08718fe5bb4b2726f9b8e016cc (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/gallium/auxiliary/nir')
-rw-r--r-- | src/gallium/auxiliary/nir/tgsi_to_nir.c | 3 |
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: |