turnip: update tu_autotune.h

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17811>
This commit is contained in:
Chia-I Wu 2022-07-29 17:13:56 -07:00 committed by Marge Bot
parent 4fc31e4af3
commit 9d9bf78565
2 changed files with 22 additions and 24 deletions

View file

@ -29,11 +29,9 @@
#include "util/hash_table.h"
#include "util/rwlock.h"
struct tu_device;
struct tu_cmd_buffer;
#include "tu_suballoc.h"
struct tu_renderpass_history;
struct tu_renderpass_result;
/**
* "autotune" our decisions about bypass vs GMEM rendering, based on historical
@ -113,6 +111,27 @@ struct tu_renderpass_samples {
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);
void tu_autotune_fini(struct tu_autotune *at, struct tu_device *dev);

View file

@ -222,27 +222,6 @@ enum global_shader {
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_BUILTIN 6