summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2011-04-08 15:12:45 +0100
committerBrian Paul <[email protected]>2011-09-23 07:58:45 -0600
commit846a21d352b0bd965c38d0308c75f220e70e3ba3 (patch)
tree4d848d7cdf9cc9135a0e3e4b9e1c3b72d8557650 /src/gallium/drivers
parentf74c04c22c0353cdd53bc68a46c86d1e3d6a6346 (diff)
svga: Consider the new depth formats in svga_texture_from_handle().
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/svga/svga_resource_texture.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_resource_texture.c b/src/gallium/drivers/svga/svga_resource_texture.c
index b5497dd6a66..5fb31d2940b 100644
--- a/src/gallium/drivers/svga/svga_resource_texture.c
+++ b/src/gallium/drivers/svga/svga_resource_texture.c
@@ -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;
}