Skip to content
Snippets Groups Projects
Commit df69376e authored by Chia-I Wu's avatar Chia-I Wu Committed by Dylan Baker
Browse files

turnip: update tu_autotune.h

(cherry picked from commit 9d9bf785)

Part-of: <mesa/mesa!17877>
parent 7c6e24f3
No related branches found
No related tags found
No related merge requests found
...@@ -29,11 +29,9 @@ ...@@ -29,11 +29,9 @@
#include "util/hash_table.h" #include "util/hash_table.h"
#include "util/rwlock.h" #include "util/rwlock.h"
struct tu_device; #include "tu_suballoc.h"
struct tu_cmd_buffer;
struct tu_renderpass_history; struct tu_renderpass_history;
struct tu_renderpass_result;
/** /**
* "autotune" our decisions about bypass vs GMEM rendering, based on historical * "autotune" our decisions about bypass vs GMEM rendering, based on historical
...@@ -113,6 +111,27 @@ struct tu_renderpass_samples { ...@@ -113,6 +111,27 @@ struct tu_renderpass_samples {
uint64_t __pad1; uint64_t __pad1;
}; };
/**
* Tracks the results from an individual renderpass. Initially created
* per renderpass, and appended to the tail of at->pending_results. At a later
* time, when the GPU has finished writing the results, we fill samples_passed.
*/
struct tu_renderpass_result {
/* Points into GPU memory */
struct tu_renderpass_samples* samples;
struct tu_suballoc_bo bo;
/*
* Below here, only used internally within autotune
*/
uint64_t rp_key;
struct tu_renderpass_history *history;
struct list_head node;
uint32_t fence;
uint64_t samples_passed;
};
VkResult tu_autotune_init(struct tu_autotune *at, struct tu_device *dev); VkResult tu_autotune_init(struct tu_autotune *at, struct tu_device *dev);
void tu_autotune_fini(struct tu_autotune *at, struct tu_device *dev); void tu_autotune_fini(struct tu_autotune *at, struct tu_device *dev);
......
...@@ -222,27 +222,6 @@ enum global_shader { ...@@ -222,27 +222,6 @@ enum global_shader {
GLOBAL_SH_COUNT, GLOBAL_SH_COUNT,
}; };
/**
* Tracks the results from an individual renderpass. Initially created
* per renderpass, and appended to the tail of at->pending_results. At a later
* time, when the GPU has finished writing the results, we fill samples_passed.
*/
struct tu_renderpass_result {
/* Points into GPU memory */
struct tu_renderpass_samples* samples;
struct tu_suballoc_bo bo;
/*
* Below here, only used internally within autotune
*/
uint64_t rp_key;
struct tu_renderpass_history *history;
struct list_head node;
uint32_t fence;
uint64_t samples_passed;
};
#define TU_BORDER_COLOR_COUNT 4096 #define TU_BORDER_COLOR_COUNT 4096
#define TU_BORDER_COLOR_BUILTIN 6 #define TU_BORDER_COLOR_BUILTIN 6
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment