zink: disable fragment-shader texture-lod
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 31 Oct 2019 19:05:58 +0000 (20:05 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 6 Nov 2019 11:37:36 +0000 (11:37 +0000)
We don't support nir_texop_txd, which is required by this cap. So let's
disable it for now.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Fixes: 8d46e35d16e ("zink: introduce opengl over vulkan")
src/gallium/drivers/zink/zink_screen.c

index 2cde08abd067b6e0d0e110c1fa7aeda3780199f6..7addb9d96601161ecff47c3e7fc52c2e969eea25 100644 (file)
@@ -125,6 +125,8 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
       return 1;
 
    case PIPE_CAP_FRAGMENT_SHADER_TEXTURE_LOD:
+      return 0; /* TODO: re-enable after implementing nir_texop_txd */
+
    case PIPE_CAP_FRAGMENT_SHADER_DERIVATIVES:
    case PIPE_CAP_VERTEX_SHADER_SATURATE:
       return 1;