Mesa (master): i965/miptree: Simplify the switch in supports_ccs
Nanley Chery
nchery at kemper.freedesktop.org
Fri May 18 16:56:38 UTC 2018
Module: Mesa
Branch: master
Commit: 8007b2d78b42a6eaf90dfdb5f59f71bedd9f268c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8007b2d78b42a6eaf90dfdb5f59f71bedd9f268c
Author: Nanley Chery <nanley.g.chery at intel.com>
Date: Wed May 16 11:07:41 2018 -0700
i965/miptree: Simplify the switch in supports_ccs
Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
---
src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index 0289f4f7e4..1a797326a8 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -159,12 +159,8 @@ intel_miptree_supports_ccs(struct brw_context *brw,
return false;
/* MCS is only supported for color buffers */
- switch (_mesa_get_format_base_format(mt->format)) {
- case GL_DEPTH_COMPONENT:
- case GL_DEPTH_STENCIL:
- case GL_STENCIL_INDEX:
+ if (!_mesa_is_format_color_format(mt->format))
return false;
- }
if (mt->cpp != 4 && mt->cpp != 8 && mt->cpp != 16)
return false;
More information about the mesa-commit
mailing list