diff options
author | Marek Olšák <marek.olsak@amd.com> | 2020-01-20 22:59:49 -0500 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2020-02-28 00:53:45 +0000 |
commit | c9e4dc8d5e8f5e860f93eb3555a507402506b59a (patch) | |
tree | 60fe237f31934f94d67728e7d2940221b514faef /src/gallium/auxiliary/hud/hud_private.h | |
parent | 6c90e39a5b854595e3bbbf30f01aaf7dc798158e (diff) |
gallium: pass cso_velems_state into cso_context instead of pipe_vertex_element
This removes one memcpy from the CSO hashing code.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3990>
Diffstat (limited to 'src/gallium/auxiliary/hud/hud_private.h')
-rw-r--r-- | src/gallium/auxiliary/hud/hud_private.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/hud/hud_private.h b/src/gallium/auxiliary/hud/hud_private.h index deed329a8af..da0b47e498d 100644 --- a/src/gallium/auxiliary/hud/hud_private.h +++ b/src/gallium/auxiliary/hud/hud_private.h @@ -32,6 +32,7 @@ #include "pipe/p_state.h" #include "util/list.h" #include "hud/font.h" +#include "cso_cache/cso_context.h" enum hud_counter { HUD_COUNTER_OFFLOADED, @@ -61,7 +62,7 @@ struct hud_context { void *fs_color, *fs_text; struct pipe_rasterizer_state rasterizer, rasterizer_aa_lines; void *vs; - struct pipe_vertex_element velems[2]; + struct cso_velems_state velems; /* font */ struct util_font font; |