mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 14:38:06 +02:00
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 <timur.kristof@gmail.com>
This commit is contained in:
parent
3b265f61f5
commit
f704fb7f0b
1 changed files with 3 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue