From 55f90c5fa4abb6e601fc27da627b4a3230d5d1ac Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 21 Mar 2022 14:52:02 -0400 Subject: [PATCH] zink: set nonseamless hint for sampler states Reviewed-by: Erik Faye-Lund Part-of: --- 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 {