From: Marek Olšák Date: Wed, 2 May 2018 23:29:29 +0000 (-0400) Subject: radeonsi: expose ARB_query_buffer_object on ancient kernels too X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8b9694da4b5079bca76191678ad34e90651a5fca;p=mesa.git radeonsi: expose ARB_query_buffer_object on ancient kernels too It doesn't use indirect dispatches. Reviewed-by: Nicolai Hähnle --- diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c index 0e7d28e334c..3feb1ae7823 100644 --- a/src/gallium/drivers/radeonsi/si_get.c +++ b/src/gallium/drivers/radeonsi/si_get.c @@ -151,6 +151,7 @@ static int si_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_TGSI_FS_FACE_IS_INTEGER_SYSVAL: case PIPE_CAP_INVALIDATE_BUFFER: case PIPE_CAP_SURFACE_REINTERPRET_BLOCKS: + case PIPE_CAP_QUERY_BUFFER_OBJECT: case PIPE_CAP_QUERY_MEMORY_INFO: case PIPE_CAP_TGSI_PACK_HALF_FLOAT: case PIPE_CAP_FRAMEBUFFER_NO_ATTACHMENT: @@ -283,9 +284,6 @@ static int si_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_NATIVE_FENCE_FD: return sscreen->info.has_fence_to_handle; - case PIPE_CAP_QUERY_BUFFER_OBJECT: - return sscreen->info.has_indirect_compute_dispatch; - case PIPE_CAP_DRAW_PARAMETERS: case PIPE_CAP_MULTI_DRAW_INDIRECT: case PIPE_CAP_MULTI_DRAW_INDIRECT_PARAMS: