Mesa (main): zink: unset PIPE_CAP_DITHERING

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Jun 18 18:23:17 UTC 2022


Module: Mesa
Branch: main
Commit: 81557a4fdf1e780bef75ca4ba115395ec61aae18
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=81557a4fdf1e780bef75ca4ba115395ec61aae18

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Wed Sep 23 10:08:02 2020 -0400

zink: unset PIPE_CAP_DITHERING

there's no point in updating blend state for this when it does nothing,
so skip updates for this functionality

in the future, I expect zink will export this conditionally based on
the underlying driver, and some sort of functionality will be implemented
to do something

Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17043>

---

 src/gallium/drivers/zink/zink_screen.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c
index 84ba2add7ef..538a831729b 100644
--- a/src/gallium/drivers/zink/zink_screen.c
+++ b/src/gallium/drivers/zink/zink_screen.c
@@ -557,6 +557,9 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_INDEP_BLEND_FUNC:
       return screen->info.feats.features.independentBlend;
 
+   case PIPE_CAP_DITHERING:
+      return 0;
+
    case PIPE_CAP_MAX_STREAM_OUTPUT_BUFFERS:
       return screen->info.have_EXT_transform_feedback ? screen->info.tf_props.maxTransformFeedbackBuffers : 0;
    case PIPE_CAP_STREAM_OUTPUT_PAUSE_RESUME:



More information about the mesa-commit mailing list