mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 16:18:06 +02:00
etnaviv: Switch to vertex_cache_size from etna_core_info
Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com> Reviewed-by: Lucas Stach <l.stach@pengutronix.de> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30806>
This commit is contained in:
parent
0a6baea787
commit
d5b4758417
3 changed files with 1 additions and 4 deletions
|
|
@ -1094,7 +1094,7 @@ fill_vs_mystery(struct etna_shader_variant *v)
|
|||
assert(half_out);
|
||||
|
||||
uint32_t b = ((20480 / (specs->vertex_output_buffer_size -
|
||||
2 * half_out * specs->vertex_cache_size)) +
|
||||
2 * half_out * info->gpu.vertex_cache_size)) +
|
||||
9) /
|
||||
10;
|
||||
uint32_t a = (b + 256 / (info->gpu.shader_core_count * half_out)) / 2;
|
||||
|
|
|
|||
|
|
@ -105,8 +105,6 @@ struct etna_specs {
|
|||
unsigned vertex_output_buffer_size;
|
||||
/* maximum number of vertex element configurations */
|
||||
unsigned vertex_max_elements;
|
||||
/* size of a cached vertex (?) */
|
||||
unsigned vertex_cache_size;
|
||||
/* number of vertex streams */
|
||||
unsigned stream_count;
|
||||
/* vertex shader memory address*/
|
||||
|
|
|
|||
|
|
@ -853,7 +853,6 @@ etna_get_specs(struct etna_screen *screen)
|
|||
if (info->type == ETNA_CORE_GPU) {
|
||||
instruction_count = info->gpu.max_instructions;
|
||||
screen->specs.vertex_output_buffer_size = info->gpu.vertex_output_buffer_size;
|
||||
screen->specs.vertex_cache_size = info->gpu.vertex_cache_size;
|
||||
screen->specs.stream_count = info->gpu.stream_count;
|
||||
screen->specs.max_registers = info->gpu.max_registers;
|
||||
screen->specs.pixel_pipes = info->gpu.pixel_pipes;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue