mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 06:40:11 +01:00
i965/miptree: Simplify the switch in supports_ccs
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
This commit is contained in:
parent
da98441fef
commit
8007b2d78b
1 changed files with 1 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue