llvmpipe: rework query logic
[mesa.git] / src / gallium / drivers / llvmpipe / lp_rast_priv.h
index 30489407cdf3f74be9849e767006c89f880c4476..b8bc99c19397506fbfa94777f64fd3c15110c7d4 100644 (file)
@@ -99,7 +99,6 @@ struct lp_rasterizer_task
 
    /* occlude counter for visible pixels */
    struct lp_jit_thread_data thread_data;
-   struct llvmpipe_query *query[PIPE_QUERY_TYPES];
    uint64_t ps_invocations;
 
    pipe_semaphore work_ready;
@@ -307,10 +306,10 @@ lp_rast_shade_quads_all( struct lp_rasterizer_task *task,
     * allocated 4x4 blocks hence need to filter them out here.
     */
    if ((x % TILE_SIZE) < task->width && (y % TILE_SIZE) < task->height) {
-      if (task->query[PIPE_QUERY_PIPELINE_STATISTICS]) {
-         /* not very accurate would need a popcount on the mask */
-         task->ps_invocations++;
-      }
+      /* not very accurate would need a popcount on the mask */
+      /* always count this not worth bothering? */
+      task->ps_invocations++;
+
       /* run shader on 4x4 block */
       BEGIN_JIT_CALL(state, task);
       variant->jit_function[RAST_WHOLE]( &state->jit_context,