From 61c095f09a773d3fdb2295a23214674fe1c20c69 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 10 Jul 2020 14:47:32 -0400 Subject: [PATCH] zink: enable pipe caps for ARB_timer_query Reviewed-by: Erik Faye-Lund Part-of: --- docs/features.txt | 2 +- src/gallium/drivers/zink/zink_screen.c | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/docs/features.txt b/docs/features.txt index 610241d8b96..12f8feba411 100644 --- a/docs/features.txt +++ b/docs/features.txt @@ -106,7 +106,7 @@ GL 3.3, GLSL 3.30 --- all DONE: i965, nv50, nvc0, r600, radeonsi, llvmpipe, soft GL_ARB_shader_bit_encoding DONE (freedreno, swr, v3d, panfrost) GL_ARB_texture_rgb10_a2ui DONE (freedreno, swr, zink, panfrost) GL_ARB_texture_swizzle DONE (freedreno, swr, v3d, zink, panfrost) - GL_ARB_timer_query DONE (freedreno, swr) + GL_ARB_timer_query DONE (freedreno, swr, zink) GL_ARB_instanced_arrays DONE (freedreno, swr, v3d, panfrost, zink) GL_ARB_vertex_type_2_10_10_10_rev DONE (freedreno, swr, v3d, panfrost) diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c index 44f84dce9df..6951f39e4f3 100644 --- a/src/gallium/drivers/zink/zink_screen.c +++ b/src/gallium/drivers/zink/zink_screen.c @@ -116,10 +116,8 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_OCCLUSION_QUERY: return 1; -#if 0 /* TODO: Enable me */ case PIPE_CAP_QUERY_TIME_ELAPSED: return 1; -#endif case PIPE_CAP_TEXTURE_MULTISAMPLE: return 1; @@ -184,10 +182,8 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_CONSTANT_BUFFER_OFFSET_ALIGNMENT: return screen->info.props.limits.minUniformBufferOffsetAlignment; -#if 0 /* TODO: Enable me */ case PIPE_CAP_QUERY_TIMESTAMP: - return 1; -#endif + return screen->info.have_EXT_calibrated_timestamps; case PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT: return screen->info.props.limits.minMemoryMapAlignment;