Mesa (master): etnaviv: drm-shim: add GC400
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jan 30 04:23:44 UTC 2020
Module: Mesa
Branch: master
Commit: d3fa18a1fa2b36e90c52e0f5809900dadf80d83f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d3fa18a1fa2b36e90c52e0f5809900dadf80d83f
Author: Christian Gmeiner <christian.gmeiner at gmail.com>
Date: Sat Dec 21 20:54:29 2019 +0100
etnaviv: drm-shim: add GC400
These are the ETNAVIV_PARAM's returned from a GC400 found on a
STM32MP157C-DK2 Discovery Board running mainline kernel.
Signed-off-by: Christian Gmeiner <christian.gmeiner at gmail.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3195>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3195>
---
src/etnaviv/drm-shim/etnaviv_noop.c | 29 ++++++++++++++++++++++++++++-
1 file changed, 28 insertions(+), 1 deletion(-)
diff --git a/src/etnaviv/drm-shim/etnaviv_noop.c b/src/etnaviv/drm-shim/etnaviv_noop.c
index f1f9e8a51f9..66b1c420efb 100644
--- a/src/etnaviv/drm-shim/etnaviv_noop.c
+++ b/src/etnaviv/drm-shim/etnaviv_noop.c
@@ -38,6 +38,33 @@ struct etna_shim_gpu
};
static const struct etna_shim_gpu gpus[] = {
+ {
+ .name = "GC400",
+ .reg_map = (const uint64_t[]){
+ [ETNAVIV_PARAM_GPU_MODEL] = 0x400,
+ [ETNAVIV_PARAM_GPU_REVISION] = 0x4652,
+ [ETNAVIV_PARAM_GPU_FEATURES_0] = 0xa0e9e004,
+ [ETNAVIV_PARAM_GPU_FEATURES_1] = 0xe1299fff,
+ [ETNAVIV_PARAM_GPU_FEATURES_2] = 0xbe13b219,
+ [ETNAVIV_PARAM_GPU_FEATURES_3] = 0xce110010,
+ [ETNAVIV_PARAM_GPU_FEATURES_4] = 0x8000001,
+ [ETNAVIV_PARAM_GPU_FEATURES_5] = 0x20102,
+ [ETNAVIV_PARAM_GPU_FEATURES_6] = 0x120000,
+ [ETNAVIV_PARAM_GPU_FEATURES_7] = 0x0,
+ [ETNAVIV_PARAM_GPU_STREAM_COUNT] = 0x4,
+ [ETNAVIV_PARAM_GPU_REGISTER_MAX] = 0x40,
+ [ETNAVIV_PARAM_GPU_THREAD_COUNT] = 0x80,
+ [ETNAVIV_PARAM_GPU_VERTEX_CACHE_SIZE] = 0x8,
+ [ETNAVIV_PARAM_GPU_SHADER_CORE_COUNT] = 0x1,
+ [ETNAVIV_PARAM_GPU_PIXEL_PIPES] = 0x1,
+ [ETNAVIV_PARAM_GPU_VERTEX_OUTPUT_BUFFER_SIZE] = 0x80,
+ [ETNAVIV_PARAM_GPU_BUFFER_SIZE] = 0x0,
+ [ETNAVIV_PARAM_GPU_INSTRUCTION_COUNT] = 0x100,
+ [ETNAVIV_PARAM_GPU_NUM_CONSTANTS] = 0x140,
+ [ETNAVIV_PARAM_GPU_NUM_VARYINGS] = 0x8,
+ [ETNAVIV_PARAM_SOFTPIN_START_ADDR] = ~0ULL,
+ }
+ },
{
.name = "GC2000",
.reg_map = (const uint64_t[]){
@@ -214,7 +241,7 @@ drm_shim_driver_init(void)
/* NOTE: keep keep default value and fallback index in sync */
if (!shim_gpu)
- shim_gpu = &gpus[0];
+ shim_gpu = &gpus[1];
fprintf(stderr, "Using %s as shim gpu\n", shim_gpu->name);
}
More information about the mesa-commit
mailing list