瀏覽代碼

i965: Simplify separate stencil check

The only format returned by _mesa_get_format_base_format() that
satisfies _mesa_is_depthstencil_format() is GL_DEPTH_STENCIL, so we
can simplify the check.

Reviewed-by: Eric Anholt <eric@anholt.net>
tags/mesa-9.2-rc1
Paul Berry 12 年之前
父節點
當前提交
346a1b9bb9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/mesa/drivers/dri/intel/intel_mipmap_tree.c

+ 1
- 1
src/mesa/drivers/dri/intel/intel_mipmap_tree.c 查看文件

@@ -247,7 +247,7 @@ intel_miptree_create_layout(struct intel_context *intel,
mt->physical_depth0 = depth0;

if (!for_region &&
_mesa_is_depthstencil_format(_mesa_get_format_base_format(format)) &&
_mesa_get_format_base_format(format) == GL_DEPTH_STENCIL &&
(intel->must_use_separate_stencil ||
(intel->has_separate_stencil &&
intel->vtbl.is_hiz_depth_format(intel, format)))) {

Loading…
取消
儲存