vc4: Stop complaining about unknown texture channel types.
authorEric Anholt <eric@anholt.net>
Wed, 20 Aug 2014 16:31:26 +0000 (09:31 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 22 Aug 2014 17:16:57 +0000 (10:16 -0700)
It doesn't matter to this code -- the sampler always returns 8-bit unorm
rgba.

src/gallium/drivers/vc4/vc4_program.c

index 8907cc65ea148f3594c668fc883d0419057b2449..fb1a2fe47bf227b0990d8f35509fbabcd0c384c7 100644 (file)
@@ -368,7 +368,6 @@ tgsi_to_qir_tex(struct tgsi_to_qir *trans,
         for (int i = 0; i < 4; i++)
                 unpacked[i] = qir_R4_UNPACK(c, i);
 
-        bool format_warned = false;
         for (int i = 0; i < 4; i++) {
                 if (!(tgsi_inst->Dst[0].Register.WriteMask & (1 << i)))
                         continue;
@@ -378,15 +377,6 @@ tgsi_to_qir_tex(struct tgsi_to_qir *trans,
                         util_format_description(format);
 
                 uint8_t swiz = desc->swizzle[i];
-                if (!format_warned &&
-                    swiz <= UTIL_FORMAT_SWIZZLE_W &&
-                    (desc->channel[swiz].type != UTIL_FORMAT_TYPE_UNSIGNED ||
-                     desc->channel[swiz].size != 8)) {
-                        fprintf(stderr,
-                                "tex channel %d unsupported type: %s\n",
-                                i, util_format_name(format));
-                        format_warned = true;
-                }
 
                 update_dst(trans, tgsi_inst, i,
                            get_swizzled_channel(trans, unpacked, swiz));