Mesa (master): zink: always expose linear float textures

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jan 22 15:45:44 UTC 2021


Module: Mesa
Branch: master
Commit: b35e11ef9506f8bb4e4607ec4a9acab908ce8705
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b35e11ef9506f8bb4e4607ec4a9acab908ce8705

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Fri Jan 22 09:00:48 2021 +0100

zink: always expose linear float textures

This is not an optional feature in Vulkan, so we can rely on this being
supported. This has the nice benefit of enabling OpenGL ES 3.0 support
on ANV.

Reviewed-by: Hoe Hao Cheng <haochengho12907 at gmail.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8640>

---

 src/gallium/drivers/zink/zink_screen.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c
index 00a6ec96b74..8f03af33ea7 100644
--- a/src/gallium/drivers/zink/zink_screen.c
+++ b/src/gallium/drivers/zink/zink_screen.c
@@ -291,11 +291,9 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
       return 1;
 #endif
 
-#if 0 /* TODO: Enable me */
    case PIPE_CAP_TEXTURE_FLOAT_LINEAR:
    case PIPE_CAP_TEXTURE_HALF_FLOAT_LINEAR:
       return 1;
-#endif
 
    case PIPE_CAP_SHAREABLE_SHADERS:
       return 1;



More information about the mesa-commit mailing list