zink: delete ZINK_DESCRIPTOR_MODE_NOFALLBACK
this was useful for testing but is going to be less useful soon Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17636>
This commit is contained in:
parent
1c2bd27d81
commit
9172127057
|
@ -253,8 +253,6 @@ changing the descriptor manager may improve performance:
|
||||||
Automatically detect best mode. This is the default.
|
Automatically detect best mode. This is the default.
|
||||||
``lazy``
|
``lazy``
|
||||||
Disable caching and attempt to use the least amount of CPU.
|
Disable caching and attempt to use the least amount of CPU.
|
||||||
``nofallback``
|
|
||||||
Always use caching to try reducing GPU churn.
|
|
||||||
``notemplates``
|
``notemplates``
|
||||||
The same as `auto`, but disables the use of `VK_KHR_descriptor_templates`.
|
The same as `auto`, but disables the use of `VK_KHR_descriptor_templates`.
|
||||||
|
|
||||||
|
|
|
@ -1526,7 +1526,7 @@ zink_descriptors_update(struct zink_context *ctx, bool is_compute)
|
||||||
zds = zink_descriptor_set_get(ctx, h, is_compute, &cache_hit);
|
zds = zink_descriptor_set_get(ctx, h, is_compute, &cache_hit);
|
||||||
if (cache_hit) {
|
if (cache_hit) {
|
||||||
pdd_cached(pg)->cache_misses[h] = 0;
|
pdd_cached(pg)->cache_misses[h] = 0;
|
||||||
} else if (likely(zink_descriptor_mode != ZINK_DESCRIPTOR_MODE_NOFALLBACK)) {
|
} else {
|
||||||
if (++pdd_cached(pg)->cache_misses[h] == MAX_CACHE_MISSES) {
|
if (++pdd_cached(pg)->cache_misses[h] == MAX_CACHE_MISSES) {
|
||||||
#ifdef PRINT_DEBUG
|
#ifdef PRINT_DEBUG
|
||||||
const char *set_names[] = {
|
const char *set_names[] = {
|
||||||
|
|
|
@ -91,7 +91,6 @@ static const struct debug_named_value
|
||||||
zink_descriptor_options[] = {
|
zink_descriptor_options[] = {
|
||||||
{ "auto", ZINK_DESCRIPTOR_MODE_AUTO, "Automatically detect best mode" },
|
{ "auto", ZINK_DESCRIPTOR_MODE_AUTO, "Automatically detect best mode" },
|
||||||
{ "lazy", ZINK_DESCRIPTOR_MODE_LAZY, "Don't cache, do least amount of updates" },
|
{ "lazy", ZINK_DESCRIPTOR_MODE_LAZY, "Don't cache, do least amount of updates" },
|
||||||
{ "nofallback", ZINK_DESCRIPTOR_MODE_NOFALLBACK, "Cache, never use lazy fallback" },
|
|
||||||
{ "notemplates", ZINK_DESCRIPTOR_MODE_NOTEMPLATES, "Cache, but disable templated updates" },
|
{ "notemplates", ZINK_DESCRIPTOR_MODE_NOTEMPLATES, "Cache, but disable templated updates" },
|
||||||
DEBUG_NAMED_VALUE_END
|
DEBUG_NAMED_VALUE_END
|
||||||
};
|
};
|
||||||
|
|
|
@ -77,7 +77,6 @@ enum zink_descriptor_type;
|
||||||
enum zink_descriptor_mode {
|
enum zink_descriptor_mode {
|
||||||
ZINK_DESCRIPTOR_MODE_AUTO,
|
ZINK_DESCRIPTOR_MODE_AUTO,
|
||||||
ZINK_DESCRIPTOR_MODE_LAZY,
|
ZINK_DESCRIPTOR_MODE_LAZY,
|
||||||
ZINK_DESCRIPTOR_MODE_NOFALLBACK,
|
|
||||||
ZINK_DESCRIPTOR_MODE_NOTEMPLATES,
|
ZINK_DESCRIPTOR_MODE_NOTEMPLATES,
|
||||||
ZINK_DESCRIPTOR_MODE_COMPACT,
|
ZINK_DESCRIPTOR_MODE_COMPACT,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue