panfrost: Remove dubious assert
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 26 Jun 2019 22:59:59 +0000 (15:59 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 28 Jun 2019 22:09:07 +0000 (15:09 -0700)
We already *can* support texture formats with bpp > 4, so..

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_context.c

index 0dfdaf1c8b64737e88d81475745a869a092a5906..bf98d3853f16e25cd221c1db1ef2df5147ecdec1 100644 (file)
@@ -2166,9 +2166,6 @@ panfrost_create_sampler_view(
          * (data) itself. So, we serialise the descriptor here and cache it for
          * later. */
 
-        /* Make sure it's something with which we're familiar */
-        assert(bytes_per_pixel >= 1 && bytes_per_pixel <= 4);
-
         /* TODO: Detect from format better */
         const struct util_format_description *desc = util_format_description(prsrc->base.format);