Commit ab3d7b6d authored by Tomeu Vizoso's avatar Tomeu Vizoso Committed by Lucas Stach

drm/etnaviv: Add nn_core_count to chip feature struct

We will use these for differentiating between GPUs and NPUs, as the
downstream driver does.
Signed-off-by: default avatarTomeu Vizoso <tomeu.vizoso@collabora.com>
Signed-off-by: default avatarLucas Stach <l.stach@pengutronix.de>
parent 1b929c02
...@@ -51,6 +51,9 @@ struct etnaviv_chip_identity { ...@@ -51,6 +51,9 @@ struct etnaviv_chip_identity {
/* Number of shader cores. */ /* Number of shader cores. */
u32 shader_core_count; u32 shader_core_count;
/* Number of Neural Network cores. */
u32 nn_core_count;
/* Size of the vertex cache. */ /* Size of the vertex cache. */
u32 vertex_cache_size; u32 vertex_cache_size;
......
...@@ -16,6 +16,7 @@ static const struct etnaviv_chip_identity etnaviv_chip_identities[] = { ...@@ -16,6 +16,7 @@ static const struct etnaviv_chip_identity etnaviv_chip_identities[] = {
.register_max = 64, .register_max = 64,
.thread_count = 128, .thread_count = 128,
.shader_core_count = 1, .shader_core_count = 1,
.nn_core_count = 0,
.vertex_cache_size = 8, .vertex_cache_size = 8,
.vertex_output_buffer_size = 1024, .vertex_output_buffer_size = 1024,
.pixel_pipes = 1, .pixel_pipes = 1,
...@@ -47,6 +48,7 @@ static const struct etnaviv_chip_identity etnaviv_chip_identities[] = { ...@@ -47,6 +48,7 @@ static const struct etnaviv_chip_identity etnaviv_chip_identities[] = {
.register_max = 64, .register_max = 64,
.thread_count = 512, .thread_count = 512,
.shader_core_count = 2, .shader_core_count = 2,
.nn_core_count = 0,
.vertex_cache_size = 16, .vertex_cache_size = 16,
.vertex_output_buffer_size = 1024, .vertex_output_buffer_size = 1024,
.pixel_pipes = 1, .pixel_pipes = 1,
...@@ -78,6 +80,7 @@ static const struct etnaviv_chip_identity etnaviv_chip_identities[] = { ...@@ -78,6 +80,7 @@ static const struct etnaviv_chip_identity etnaviv_chip_identities[] = {
.register_max = 64, .register_max = 64,
.thread_count = 512, .thread_count = 512,
.shader_core_count = 2, .shader_core_count = 2,
.nn_core_count = 0,
.vertex_cache_size = 16, .vertex_cache_size = 16,
.vertex_output_buffer_size = 1024, .vertex_output_buffer_size = 1024,
.pixel_pipes = 1, .pixel_pipes = 1,
...@@ -140,6 +143,7 @@ static const struct etnaviv_chip_identity etnaviv_chip_identities[] = { ...@@ -140,6 +143,7 @@ static const struct etnaviv_chip_identity etnaviv_chip_identities[] = {
.register_max = 64, .register_max = 64,
.thread_count = 1024, .thread_count = 1024,
.shader_core_count = 4, .shader_core_count = 4,
.nn_core_count = 0,
.vertex_cache_size = 16, .vertex_cache_size = 16,
.vertex_output_buffer_size = 1024, .vertex_output_buffer_size = 1024,
.pixel_pipes = 2, .pixel_pipes = 2,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment