mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-15 19:58:31 +02:00
llvmpipe: More tweaks to the supported texture formats.
This commit is contained in:
parent
6b1a8e0f87
commit
2da7ef077a
1 changed files with 7 additions and 11 deletions
|
|
@ -191,14 +191,14 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
|
|||
break;
|
||||
}
|
||||
|
||||
if(format_desc->block.width != 1 ||
|
||||
format_desc->block.height != 1)
|
||||
return FALSE;
|
||||
|
||||
if(format_desc->layout != UTIL_FORMAT_LAYOUT_PLAIN)
|
||||
return FALSE;
|
||||
|
||||
if(tex_usage & PIPE_TEXTURE_USAGE_RENDER_TARGET) {
|
||||
if(format_desc->block.width != 1 ||
|
||||
format_desc->block.height != 1)
|
||||
return FALSE;
|
||||
|
||||
if(format_desc->layout != UTIL_FORMAT_LAYOUT_PLAIN)
|
||||
return FALSE;
|
||||
|
||||
if(format_desc->colorspace != UTIL_FORMAT_COLORSPACE_RGB &&
|
||||
format_desc->colorspace != UTIL_FORMAT_COLORSPACE_SRGB)
|
||||
return FALSE;
|
||||
|
|
@ -228,10 +228,6 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
|
|||
if(format_desc->colorspace != UTIL_FORMAT_COLORSPACE_RGB &&
|
||||
format_desc->colorspace != UTIL_FORMAT_COLORSPACE_ZS)
|
||||
return FALSE;
|
||||
|
||||
/* not supported yet */
|
||||
if (format == PIPE_FORMAT_Z16_UNORM)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue