summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/drivers/etnaviv/etnaviv_translate.h
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2019-01-29 11:52:33 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2019-01-29 11:52:33 +0000
commit37bbf6a1792773f11c15a4da1588a7520ee2fb4e (patch)
tree64944d4aa665a1e479cfc004e446593062254550 /lib/mesa/src/gallium/drivers/etnaviv/etnaviv_translate.h
parent6b139c2063623e9310025247cd966490b9aa57ea (diff)
Merge Mesa 18.3.2
Diffstat (limited to 'lib/mesa/src/gallium/drivers/etnaviv/etnaviv_translate.h')
-rw-r--r--lib/mesa/src/gallium/drivers/etnaviv/etnaviv_translate.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/lib/mesa/src/gallium/drivers/etnaviv/etnaviv_translate.h b/lib/mesa/src/gallium/drivers/etnaviv/etnaviv_translate.h
index 0761251a3..88ce107a9 100644
--- a/lib/mesa/src/gallium/drivers/etnaviv/etnaviv_translate.h
+++ b/lib/mesa/src/gallium/drivers/etnaviv/etnaviv_translate.h
@@ -30,17 +30,15 @@
#include "etnaviv_debug.h"
#include "etnaviv_format.h"
-#include "etnaviv_tiling.h"
#include "etnaviv_util.h"
#include "hw/cmdstream.xml.h"
+#include "hw/common_3d.xml.h"
#include "hw/state.xml.h"
#include "hw/state_3d.xml.h"
#include "util/u_format.h"
#include "util/u_math.h"
-#include <stdio.h>
-
/* Returned when there is no match of pipe value to etna value */
#define ETNA_NO_MATCH (~0)
@@ -283,19 +281,19 @@ translate_msaa_format(enum pipe_format fmt)
/* Note: Pipe format convention is LSB to MSB, VIVS is MSB to LSB */
switch (fmt) {
case PIPE_FORMAT_B4G4R4X4_UNORM:
- return VIVS_TS_MEM_CONFIG_MSAA_FORMAT_A4R4G4B4;
+ return COLOR_COMPRESSION_FORMAT_A4R4G4B4;
case PIPE_FORMAT_B4G4R4A4_UNORM:
- return VIVS_TS_MEM_CONFIG_MSAA_FORMAT_A4R4G4B4;
+ return COLOR_COMPRESSION_FORMAT_A4R4G4B4;
case PIPE_FORMAT_B5G5R5X1_UNORM:
- return VIVS_TS_MEM_CONFIG_MSAA_FORMAT_A1R5G5B5;
+ return COLOR_COMPRESSION_FORMAT_A1R5G5B5;
case PIPE_FORMAT_B5G5R5A1_UNORM:
- return VIVS_TS_MEM_CONFIG_MSAA_FORMAT_A1R5G5B5;
+ return COLOR_COMPRESSION_FORMAT_A1R5G5B5;
case PIPE_FORMAT_B5G6R5_UNORM:
- return VIVS_TS_MEM_CONFIG_MSAA_FORMAT_R5G6B5;
+ return COLOR_COMPRESSION_FORMAT_R5G6B5;
case PIPE_FORMAT_B8G8R8X8_UNORM:
- return VIVS_TS_MEM_CONFIG_MSAA_FORMAT_X8R8G8B8;
+ return COLOR_COMPRESSION_FORMAT_X8R8G8B8;
case PIPE_FORMAT_B8G8R8A8_UNORM:
- return VIVS_TS_MEM_CONFIG_MSAA_FORMAT_A8R8G8B8;
+ return COLOR_COMPRESSION_FORMAT_A8R8G8B8;
/* MSAA with YUYV not supported */
default:
return ETNA_NO_MATCH;