mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
svga: Consider the new depth formats in svga_texture_from_handle().
This commit is contained in:
parent
f74c04c22c
commit
846a21d352
1 changed files with 2 additions and 1 deletions
|
|
@ -616,7 +616,8 @@ svga_texture_from_handle(struct pipe_screen *screen,
|
|||
/* It's okay for XRGB and ARGB or depth with/out stencil to get mixed up */
|
||||
if ( !( (f1 == SVGA3D_X8R8G8B8 && f2 == SVGA3D_A8R8G8B8) ||
|
||||
(f1 == SVGA3D_A8R8G8B8 && f2 == SVGA3D_X8R8G8B8) ||
|
||||
(f1 == SVGA3D_Z_D24X8 && f2 == SVGA3D_Z_D24S8) ) ) {
|
||||
(f1 == SVGA3D_Z_D24X8 && f2 == SVGA3D_Z_D24S8) ||
|
||||
(f1 == SVGA3D_Z_DF24 && f2 == SVGA3D_Z_D24S8_INT) ) ) {
|
||||
debug_printf("%s wrong format %u != %u\n", __FUNCTION__, f1, f2);
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue