zink: disable timestamp-queries
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 16 Jul 2019 09:02:16 +0000 (11:02 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 28 Oct 2019 08:51:47 +0000 (08:51 +0000)
We don't implement the get_timestamp context-method, so this is just
going to crash if anyone tries to use it. Let's implement it later.

Acked-by: Jordan Justen <jordan.l.justen@intel.com>
src/gallium/drivers/zink/zink_screen.c

index f26b7c60864d608a2e237d6702a06c1d8ba341f2..306ce23bb7a022be9b9fbbaad180a3c74151f04d 100644 (file)
@@ -165,8 +165,10 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_CONSTANT_BUFFER_OFFSET_ALIGNMENT:
       return screen->props.limits.minUniformBufferOffsetAlignment;
 
+#if 0 /* TODO: Enable me */
    case PIPE_CAP_QUERY_TIMESTAMP:
       return 1;
+#endif
 
    case PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT:
       return screen->props.limits.minMemoryMapAlignment;