Skip to content
Snippets Groups Projects
Commit f704fb7f authored by Marek Olšák's avatar Marek Olšák
Browse files

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: default avatarTimur Kristóf <timur.kristof@gmail.com>
parent 3b265f61
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment