radeonsi: expose ARB_query_buffer_object on ancient kernels too
authorMarek Olšák <marek.olsak@amd.com>
Wed, 2 May 2018 23:29:29 +0000 (19:29 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 10 May 2018 22:40:04 +0000 (18:40 -0400)
It doesn't use indirect dispatches.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_get.c

index 0e7d28e334c5020533343a5be3898b53d975bb76..3feb1ae7823fd0a68bf3b2150f57cf67692d2db4 100644 (file)
@@ -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: