freedreno: make hw-query a helper
authorRob Clark <robdclark@gmail.com>
Fri, 21 Apr 2017 13:50:30 +0000 (09:50 -0400)
committerRob Clark <robdclark@gmail.com>
Sat, 22 Apr 2017 14:03:01 +0000 (10:03 -0400)
commitdf63ff4d8248d81ecb8d0f3059bf2c67431e6f2f
tree6bdc94b7326d0367ebdf6b5579fca13e19997ff4
parent2faf227ec2e22c7a37e0a54783a3f0a0062ac852
freedreno: make hw-query a helper

For a5xx (and actually some queries on a4xx) we can accumulate results
in the cmdstream, so we don't need this elaborate mechanism of tracking
per-tile query results.  So make it into vfuncs so generation specific
backend can use it when it makes sense.

Signed-off-by: Rob Clark <robdclark@gmail.com>
13 files changed:
src/gallium/drivers/freedreno/a3xx/fd3_context.c
src/gallium/drivers/freedreno/a3xx/fd3_query.c
src/gallium/drivers/freedreno/a4xx/fd4_context.c
src/gallium/drivers/freedreno/a4xx/fd4_query.c
src/gallium/drivers/freedreno/a5xx/fd5_emit.c
src/gallium/drivers/freedreno/freedreno_batch.c
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_resource.c
src/gallium/drivers/freedreno/freedreno_state.c