1af69d88dSmrg/**************************************************************************
2af69d88dSmrg *
3af69d88dSmrg * Copyright 2013 Marek Olšák <maraeo@gmail.com>
4af69d88dSmrg * All Rights Reserved.
5af69d88dSmrg *
6af69d88dSmrg * Permission is hereby granted, free of charge, to any person obtaining a
7af69d88dSmrg * copy of this software and associated documentation files (the
8af69d88dSmrg * "Software"), to deal in the Software without restriction, including
9af69d88dSmrg * without limitation the rights to use, copy, modify, merge, publish,
10af69d88dSmrg * distribute, sub license, and/or sell copies of the Software, and to
11af69d88dSmrg * permit persons to whom the Software is furnished to do so, subject to
12af69d88dSmrg * the following conditions:
13af69d88dSmrg *
14af69d88dSmrg * The above copyright notice and this permission notice (including the
15af69d88dSmrg * next paragraph) shall be included in all copies or substantial portions
16af69d88dSmrg * of the Software.
17af69d88dSmrg *
18af69d88dSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
19af69d88dSmrg * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20af69d88dSmrg * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
21af69d88dSmrg * IN NO EVENT SHALL THE AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR
22af69d88dSmrg * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
23af69d88dSmrg * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24af69d88dSmrg * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25af69d88dSmrg *
26af69d88dSmrg **************************************************************************/
27af69d88dSmrg
28af69d88dSmrg#ifndef HUD_CONTEXT_H
29af69d88dSmrg#define HUD_CONTEXT_H
30af69d88dSmrg
31af69d88dSmrgstruct hud_context;
32af69d88dSmrgstruct cso_context;
33af69d88dSmrgstruct pipe_context;
34af69d88dSmrgstruct pipe_resource;
3501e04c3fSmrgstruct util_queue_monitoring;
367ec681f3Smrgstruct st_context_iface;
37af69d88dSmrg
38af69d88dSmrgstruct hud_context *
397ec681f3Smrghud_create(struct cso_context *cso, struct st_context_iface *st,
407ec681f3Smrg           struct hud_context *share);
41af69d88dSmrg
42af69d88dSmrgvoid
4301e04c3fSmrghud_destroy(struct hud_context *hud, struct cso_context *cso);
44af69d88dSmrg
45af69d88dSmrgvoid
4601e04c3fSmrghud_run(struct hud_context *hud, struct cso_context *cso,
4701e04c3fSmrg        struct pipe_resource *tex);
4801e04c3fSmrg
4901e04c3fSmrgvoid
5001e04c3fSmrghud_record_only(struct hud_context *hud, struct pipe_context *pipe);
5101e04c3fSmrg
5201e04c3fSmrgvoid
5301e04c3fSmrghud_add_queue_for_monitoring(struct hud_context *hud,
5401e04c3fSmrg                             struct util_queue_monitoring *queue_info);
55af69d88dSmrg
56af69d88dSmrg#endif
57