summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/radeonsi/si_pipe.h
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2020-11-29 01:16:25 -0500
committerMarge Bot <eric+marge@anholt.net>2020-12-03 21:41:19 +0000
commit8904fcca6dbe3059b73a90d99b9105bfa0661e12 (patch)
tree6f01d0f1408d42ebc033a19831ca68cda497882e /src/gallium/drivers/radeonsi/si_pipe.h
parent0b22def5f84c0c2c83daaf00710ae7c50ceee9d1 (diff)
gallium: inline struct u_suballocator to remove dereferences
Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7901>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_pipe.h')
-rw-r--r--src/gallium/drivers/radeonsi/si_pipe.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.h b/src/gallium/drivers/radeonsi/si_pipe.h
index bdbe81878b7..2936e571585 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.h
+++ b/src/gallium/drivers/radeonsi/si_pipe.h
@@ -29,6 +29,7 @@
#include "si_state.h"
#include "util/u_dynarray.h"
#include "util/u_idalloc.h"
+#include "util/u_suballoc.h"
#include "util/u_threaded_context.h"
#if UTIL_ARCH_BIG_ENDIAN
@@ -252,7 +253,6 @@ enum si_coherency
struct si_compute;
struct si_shader_context;
struct hash_table;
-struct u_suballocator;
/* Only 32-bit buffer allocations are supported, gallium doesn't support more
* at the moment.
@@ -910,7 +910,7 @@ struct si_context {
struct si_resource *eop_bug_scratch_tmz;
struct u_upload_mgr *cached_gtt_allocator;
struct threaded_context *tc;
- struct u_suballocator *allocator_zeroed_memory;
+ struct u_suballocator allocator_zeroed_memory;
struct slab_child_pool pool_transfers;
struct slab_child_pool pool_transfers_unsync; /* for threaded_context */
struct pipe_device_reset_callback device_reset_callback;