_TC(R8_SRGB, 8_UNORM, WZYX),
_TC(Y8_UNORM, NV12_Y, WZYX),
- FMT(A8_UNORM, NONE, 8_UNORM, A8_UNORM, WZYX),
+ _TC(A8_UNORM, A8_UNORM, WZYX),
_TC(L8_UNORM, 8_UNORM, WZYX),
_TC(L8_SRGB, 8_UNORM, WZYX),
_TC(L8_SNORM, 8_SNORM, WZYX),
break;
default:
- /* Our I, L, A, and LA formats use R or RG HW formats. These aren't
- * supported in Vulkan, and freedreno uses a hack to get the border
- * colors correct by undoing these swizzles.
+ /* Our I, L, A, and LA formats use R or RG HW formats except for
+ * A8_UNORM. These aren't supported in Vulkan, and freedreno uses a hack
+ * to get the border colors correct by undoing these swizzles.
*/
- if (util_format_is_alpha(format)) {
+ if (util_format_is_alpha(format) && format != PIPE_FORMAT_A8_UNORM) {
format_swiz[0] = PIPE_SWIZZLE_0;
format_swiz[1] = PIPE_SWIZZLE_0;
format_swiz[2] = PIPE_SWIZZLE_0;