diff options
author | Marek Olšák <[email protected]> | 2017-07-10 16:06:08 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-07-17 10:57:17 -0400 |
commit | 465bb47d6f6c1d41ddb6d99fee31f2df2fbc7b5a (patch) | |
tree | 681e80c6890a7cf5f4b3c4984793fcdec40a86c4 /src/gallium/drivers/radeonsi | |
parent | 3d1a576fa607b5df05cbfe286ef9821ba387344d (diff) |
radeonsi: expose ARB_timer_query unconditionally
clock_crystal_freq is always non-zero now.
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 371d3372aa9..e2ec37731f6 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -509,6 +509,8 @@ static int si_get_param(struct pipe_screen* pscreen, enum pipe_cap param) case PIPE_CAP_TGSI_TEX_TXF_LZ: case PIPE_CAP_TGSI_TES_LAYER_VIEWPORT: case PIPE_CAP_BINDLESS_TEXTURE: + case PIPE_CAP_QUERY_TIMESTAMP: + case PIPE_CAP_QUERY_TIME_ELAPSED: return 1; case PIPE_CAP_INT64: @@ -645,11 +647,6 @@ static int si_get_param(struct pipe_screen* pscreen, enum pipe_cap param) case PIPE_CAP_MAX_RENDER_TARGETS: return 8; - /* Timer queries, present when the clock frequency is non zero. */ - case PIPE_CAP_QUERY_TIMESTAMP: - case PIPE_CAP_QUERY_TIME_ELAPSED: - return sscreen->b.info.clock_crystal_freq != 0; - case PIPE_CAP_MIN_TEXTURE_GATHER_OFFSET: case PIPE_CAP_MIN_TEXEL_OFFSET: return -32; |