case PIPE_FORMAT_R16_SINT:
case PIPE_FORMAT_R16_FLOAT:
case PIPE_FORMAT_R16G16_FLOAT:
+ case PIPE_FORMAT_L16_UNORM:
+ case PIPE_FORMAT_I16_UNORM:
+ case PIPE_FORMAT_A16_UNORM:
return V_028C70_COLOR_16;
/* 32-bit buffers. */
case PIPE_FORMAT_Z32_FLOAT:
return V_028C70_COLOR_32;
+ case PIPE_FORMAT_L16A16_UNORM:
case PIPE_FORMAT_R16G16_SSCALED:
case PIPE_FORMAT_R16G16_UNORM:
case PIPE_FORMAT_R16G16_UINT:
case PIPE_FORMAT_R8G8_SINT:
return V_028C70_SWAP_STD;
+ case PIPE_FORMAT_I16_UNORM:
+ case PIPE_FORMAT_L16_UNORM:
case PIPE_FORMAT_R16_UNORM:
case PIPE_FORMAT_R16_UINT:
case PIPE_FORMAT_R16_SINT:
case PIPE_FORMAT_R16_FLOAT:
return V_028C70_SWAP_STD;
+ case PIPE_FORMAT_A16_UNORM:
+ return V_028C70_SWAP_ALT_REV;
+
/* 32-bit buffers. */
case PIPE_FORMAT_A8B8G8R8_SRGB:
return V_028C70_SWAP_STD_REV;
case PIPE_FORMAT_R16G16_SINT:
return V_028C70_SWAP_STD;
+ case PIPE_FORMAT_L16A16_UNORM:
+ return V_028C70_SWAP_ALT;
+
/* 64-bit buffers. */
case PIPE_FORMAT_R32G32_FLOAT:
case PIPE_FORMAT_R32G32_UINT:
switch (desc->channel[first_non_void].size) {
case 4:
switch (desc->nr_channels) {
+#if 0 /* Not supported for render targets */
case 2:
return V_008F14_IMG_DATA_FORMAT_4_4;
+#endif
case 4:
return V_008F14_IMG_DATA_FORMAT_4_4_4_4;
}