radeonsi: advertise the pipeline statistics query
authorMarek Olšák <marek.olsak@amd.com>
Tue, 21 Jan 2014 23:08:11 +0000 (00:08 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 28 Jan 2014 00:39:15 +0000 (01:39 +0100)
Implemented by the common code. You can now visualize the statistics
with the HUD, see GALLIUM_HUD=help for all available queries. For example:

GALLIUM_HUD=clipper-primitives-generated

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/drivers/radeonsi/si_pipe.c

index fee6251ee2ff53b4f29999d1a44dd97afe6ce597..077706f4cf3d99c9be56b73f07dd51283a9a9816 100644 (file)
@@ -310,6 +310,7 @@ static int si_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
        case PIPE_CAP_COMPUTE:
        case PIPE_CAP_TEXTURE_BUFFER_OBJECTS:
         case PIPE_CAP_TGSI_VS_LAYER:
+       case PIPE_CAP_QUERY_PIPELINE_STATISTICS:
                return 1;
 
        case PIPE_CAP_TEXTURE_MULTISAMPLE:
@@ -342,7 +343,6 @@ static int si_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
        case PIPE_CAP_VERTEX_COLOR_CLAMPED:
        case PIPE_CAP_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION:
        case PIPE_CAP_USER_VERTEX_BUFFERS:
-       case PIPE_CAP_QUERY_PIPELINE_STATISTICS:
        case PIPE_CAP_CUBE_MAP_ARRAY:
                return 0;