瀏覽代碼

svga: Consider the new depth formats in svga_texture_from_handle().

tags/mesa-8.0-rc1
José Fonseca 14 年之前
父節點
當前提交
846a21d352
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. 2
    1
      src/gallium/drivers/svga/svga_resource_texture.c

+ 2
- 1
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;
}

Loading…
取消
儲存