[Mesa-dev] [PATCH 01/14] radv: add some misc gfx9 pieces.
Dave Airlie
airlied at gmail.com
Mon Jun 5 23:14:33 UTC 2017
From: Dave Airlie <airlied at redhat.com>
This just adds the strings and includes the gfx9 register defs
in some files that we need them in.
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
src/amd/common/ac_llvm_util.c | 3 +++
src/amd/vulkan/radv_cmd_buffer.c | 1 +
src/amd/vulkan/radv_device.c | 6 ++++++
src/amd/vulkan/radv_image.c | 1 +
src/amd/vulkan/radv_pipeline.c | 1 +
src/amd/vulkan/si_cmd_buffer.c | 1 +
6 files changed, 13 insertions(+)
diff --git a/src/amd/common/ac_llvm_util.c b/src/amd/common/ac_llvm_util.c
index ee5fc89..d9d8d91 100644
--- a/src/amd/common/ac_llvm_util.c
+++ b/src/amd/common/ac_llvm_util.c
@@ -110,6 +110,9 @@ static const char *ac_get_llvm_processor_name(enum radeon_family family)
case CHIP_POLARIS11:
case CHIP_POLARIS12:
return "polaris11";
+ case CHIP_VEGA10:
+ case CHIP_RAVEN:
+ return "gfx900";
default:
return "";
}
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
index 5b3f715..90c7d26 100644
--- a/src/amd/vulkan/radv_cmd_buffer.c
+++ b/src/amd/vulkan/radv_cmd_buffer.c
@@ -29,6 +29,7 @@
#include "radv_radeon_winsys.h"
#include "radv_cs.h"
#include "sid.h"
+#include "gfx9d.h"
#include "vk_format.h"
#include "radv_meta.h"
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index d80d746..59ce2d0 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -42,6 +42,7 @@
#include "ac_llvm_util.h"
#include "vk_format.h"
#include "sid.h"
+#include "gfx9d.h"
#include "util/debug.h"
static int
@@ -230,6 +231,8 @@ get_chip_name(enum radeon_family family)
case CHIP_POLARIS11: return "AMD RADV POLARIS11";
case CHIP_POLARIS12: return "AMD RADV POLARIS12";
case CHIP_STONEY: return "AMD RADV STONEY";
+ case CHIP_VEGA10: return "AMD RADV VEGA";
+ case CHIP_RAVEN: return "AMD RADV RAVEN";
default: return "AMD RADV unknown";
}
}
@@ -975,6 +978,8 @@ radv_device_init_gs_info(struct radv_device *device)
case CHIP_POLARIS10:
case CHIP_POLARIS11:
case CHIP_POLARIS12:
+ case CHIP_VEGA10:
+ case CHIP_RAVEN:
device->gs_table_depth = 32;
return;
default:
@@ -1476,6 +1481,7 @@ radv_get_hs_offchip_param(struct radv_device *device, uint32_t *max_offchip_buff
break;
case CIK:
case VI:
+ case GFX9:
default:
max_offchip_buffers = MIN2(max_offchip_buffers, 508);
break;
diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c
index 376de71..df0498d 100644
--- a/src/amd/vulkan/radv_image.c
+++ b/src/amd/vulkan/radv_image.c
@@ -29,6 +29,7 @@
#include "vk_format.h"
#include "radv_radeon_winsys.h"
#include "sid.h"
+#include "gfx9d.h"
#include "util/debug.h"
static unsigned
radv_choose_tiling(struct radv_device *Device,
diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index 3282652..ffedf23 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -35,6 +35,7 @@
#include <llvm-c/TargetMachine.h>
#include "sid.h"
+#include "gfx9d.h"
#include "r600d_common.h"
#include "ac_binary.h"
#include "ac_llvm_util.h"
diff --git a/src/amd/vulkan/si_cmd_buffer.c b/src/amd/vulkan/si_cmd_buffer.c
index e7ad4e0..d111c98 100644
--- a/src/amd/vulkan/si_cmd_buffer.c
+++ b/src/amd/vulkan/si_cmd_buffer.c
@@ -30,6 +30,7 @@
#include "radv_private.h"
#include "radv_cs.h"
#include "sid.h"
+#include "gfx9d.h"
#include "radv_util.h"
#include "main/macros.h"
--
2.9.4
More information about the mesa-dev
mailing list