mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-15 17:30:32 +01:00
i965: Change the order of conditions tested in if
Reduces the number of conditions tested in if to one in case of non-integer formats. Makes no functional changes. Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
8e029105c2
commit
15259d63e8
1 changed files with 4 additions and 3 deletions
|
|
@ -697,9 +697,10 @@ brw_render_target_supported(struct brw_context *brw,
|
|||
* available to fake it like we do for XRGB8888. Force them to being
|
||||
* unsupported.
|
||||
*/
|
||||
if ((rb->_BaseFormat != GL_RGBA &&
|
||||
rb->_BaseFormat != GL_RG &&
|
||||
rb->_BaseFormat != GL_RED) && _mesa_is_format_integer_color(format))
|
||||
if (_mesa_is_format_integer_color(format) &&
|
||||
rb->_BaseFormat != GL_RGBA &&
|
||||
rb->_BaseFormat != GL_RG &&
|
||||
rb->_BaseFormat != GL_RED)
|
||||
return false;
|
||||
|
||||
/* Under some conditions, MSAA is not supported for formats whose width is
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue