mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 11:08:03 +02:00
softpipe: compressed formats can't be render targets
This commit is contained in:
parent
b806f2a239
commit
1a4383cd42
1 changed files with 4 additions and 1 deletions
|
|
@ -159,7 +159,10 @@ softpipe_is_format_supported( struct pipe_screen *screen,
|
|||
case PIPE_FORMAT_DXT1_RGBA:
|
||||
case PIPE_FORMAT_DXT3_RGBA:
|
||||
case PIPE_FORMAT_DXT5_RGBA:
|
||||
return util_format_s3tc_enabled;
|
||||
if (tex_usage & PIPE_BIND_RENDER_TARGET)
|
||||
return FALSE;
|
||||
else
|
||||
return util_format_s3tc_enabled;
|
||||
|
||||
case PIPE_FORMAT_Z32_FLOAT:
|
||||
case PIPE_FORMAT_NONE:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue