freedreno: add support for hw queries
authorRob Clark <robclark@freedesktop.org>
Sat, 10 May 2014 17:45:54 +0000 (13:45 -0400)
committerRob Clark <robclark@freedesktop.org>
Tue, 13 May 2014 22:33:19 +0000 (18:33 -0400)
commitb8f78e18907be379415c8c804b634808349fc1d9
tree6a8fe75487de633ad4329f30e49ed6f031c22652
parent13a0cf4480b908aafa337c121cbdfc338318f088
freedreno: add support for hw queries

Real GPU queries need some infrastructure to track samples per tile and
accumulate the results.  But fortunately this can be shared across GPU
generation.

See:
https://github.com/freedreno/freedreno/wiki/Queries#hardware-queries

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/Makefile.sources
src/gallium/drivers/freedreno/freedreno_context.c
src/gallium/drivers/freedreno/freedreno_context.h
src/gallium/drivers/freedreno/freedreno_draw.c
src/gallium/drivers/freedreno/freedreno_gmem.c
src/gallium/drivers/freedreno/freedreno_query.c
src/gallium/drivers/freedreno/freedreno_query_hw.c [new file with mode: 0644]
src/gallium/drivers/freedreno/freedreno_query_hw.h [new file with mode: 0644]
src/gallium/drivers/freedreno/freedreno_resource.c
src/gallium/drivers/freedreno/freedreno_util.h