Mesa (main): zink: set nonseamless hint for sampler states
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Apr 7 14:47:38 UTC 2022
Module: Mesa
Branch: main
Commit: 55f90c5fa4abb6e601fc27da627b4a3230d5d1ac
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=55f90c5fa4abb6e601fc27da627b4a3230d5d1ac
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Mon Mar 21 14:52:02 2022 -0400
zink: set nonseamless hint for sampler states
Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15536>
---
src/gallium/drivers/zink/zink_context.c | 1 +
src/gallium/drivers/zink/zink_context.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c
index ae82677cd6a..f6e4640a9da 100644
--- a/src/gallium/drivers/zink/zink_context.c
+++ b/src/gallium/drivers/zink/zink_context.c
@@ -410,6 +410,7 @@ zink_create_sampler_state(struct pipe_context *pctx,
util_dynarray_init(&sampler->desc_set_refs.refs, NULL);
calc_descriptor_hash_sampler_state(sampler);
sampler->custom_border_color = need_custom;
+ sampler->nonseamless = !state->seamless_cube_map;
return sampler;
}
diff --git a/src/gallium/drivers/zink/zink_context.h b/src/gallium/drivers/zink/zink_context.h
index 90c0bc38431..db67a2c017e 100644
--- a/src/gallium/drivers/zink/zink_context.h
+++ b/src/gallium/drivers/zink/zink_context.h
@@ -80,6 +80,7 @@ struct zink_sampler_state {
struct zink_descriptor_refs desc_set_refs;
struct zink_batch_usage *batch_uses;
bool custom_border_color;
+ bool nonseamless;
};
struct zink_buffer_view {
More information about the mesa-commit
mailing list