From: Chia-I Wu Date: Thu, 23 May 2013 06:02:36 +0000 (+0800) Subject: ilo: advertise supports for pure integer formats X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F44%2F6744%2F1;p=platform%2Fupstream%2Fmesa.git ilo: advertise supports for pure integer formats For pure integer formats, no filtering nor blending is needed. --- diff --git a/src/gallium/drivers/ilo/ilo_format.c b/src/gallium/drivers/ilo/ilo_format.c index 50c70d4..65fb820 100644 --- a/src/gallium/drivers/ilo/ilo_format.c +++ b/src/gallium/drivers/ilo/ilo_format.c @@ -608,6 +608,7 @@ ilo_is_format_supported(struct pipe_screen *screen, { struct ilo_screen *is = ilo_screen(screen); const int gen = ILO_GEN_GET_MAJOR(is->dev.gen * 10); + const bool is_pure_int = util_format_is_pure_integer(format); const struct surface_format_info *info; unsigned bind; @@ -641,7 +642,7 @@ ilo_is_format_supported(struct pipe_screen *screen, if (gen < info->render_target) return false; - if (gen < info->alpha_blend) + if (!is_pure_int && gen < info->alpha_blend) return false; } @@ -652,7 +653,7 @@ ilo_is_format_supported(struct pipe_screen *screen, if (gen < info->sampling) return false; - if (gen < info->filtering) + if (!is_pure_int && gen < info->filtering) return false; }