       brw_write_timestamp(brw, query->bo, 0);       break;     case GL_ANY_SAMPLES_PASSED:    case GL_ANY_SAMPLES_PASSED_CONSERVATIVE:    case GL_SAMPLES_PASSED_ARB:       brw_write_depth_count(brw, query->bo, 0);       break;     case GL_PRIMITIVES_GENERATED:       write_primitives_generated(brw, query->bo, query->Base.Stream, 0);       if (query->Base.Stream == 0)          ctx->NewDriverState |= BRW_NEW_RASTERIZER_DISCARD;       break;     case GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN:       write_xfb_primitives_written(brw, query->bo, query->Base.Stream, 0);       break;     case GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW_ARB:       write_xfb_overflow_streams(ctx, query->bo, query->Base.Stream, 0, 0);       break;     case GL_TRANSFORM_FEEDBACK_OVERFLOW_ARB:       write_xfb_overflow_streams(ctx, query->bo, 0, MAX_VERTEX_STREAMS, 0);       break;     case GL_VERTICES_SUBMITTED_ARB:    case GL_PRIMITIVES_SUBMITTED_ARB:    case GL_VERTEX_SHADER_INVOCATIONS_ARB:    case GL_GEOMETRY_SHADER_INVOCATIONS:    case GL_GEOMETRY_SHADER_PRIMITIVES_EMITTED_ARB:    case GL_FRAGMENT_SHADER_INVOCATIONS_ARB:    case GL_CLIPPING_INPUT_PRIMITIVES_ARB:    case GL_CLIPPING_OUTPUT_PRIMITIVES_ARB:    case GL_COMPUTE_SHADER_INVOCATIONS_ARB:    case GL_TESS_CONTROL_SHADER_PATCHES_ARB:    case GL_TESS_EVALUATION_SHADER_INVOCATIONS_ARB:       emit_pipeline_stat(brw, query->bo, query->Base.Stream, query->Base.Target, 0);       break;     default:       unreachable("Unrecognized query target in brw_