#include "tgsi/tgsi_text.h"
#include "tgsi/tgsi_dump.h"
-#define HUD_DEFAULT_VISIBILITY TRUE
+#define HUD_DEFAULT_VISIBILITY true
#define HUD_DEFAULT_SCALE 1
#define HUD_DEFAULT_ROTATION 0
#define HUD_DEFAULT_OPACITY 66
/* Control the visibility of all HUD contexts */
-static boolean huds_visible = HUD_DEFAULT_VISIBILITY;
+static bool huds_visible = HUD_DEFAULT_VISIBILITY;
static int hud_scale = HUD_DEFAULT_SCALE;
static int hud_rotate = HUD_DEFAULT_ROTATION;
static float hud_opacity = HUD_DEFAULT_OPACITY / 100.0f;
cso_set_geometry_shader_handle(cso, NULL);
cso_set_vertex_shader_handle(cso, hud->vs_color);
cso_set_vertex_elements(cso, &hud->velems);
- cso_set_render_condition(cso, NULL, FALSE, 0);
+ cso_set_render_condition(cso, NULL, false, 0);
pipe->set_sampler_views(pipe, PIPE_SHADER_FRAGMENT, 0, 1, 0, false,
&hud->font_sampler_view);
cso_set_samplers(cso, PIPE_SHADER_FRAGMENT, 1, sampler_states);
unsigned x1, unsigned y1, unsigned x2, unsigned y2,
unsigned y_simple,
unsigned period, uint64_t max_value, uint64_t ceiling,
- boolean dyn_ceiling, boolean sort_items)
+ bool dyn_ceiling, bool sort_items)
{
struct hud_pane *pane = CALLOC_STRUCT(hud_pane);
static char *
read_pane_settings(char *str, unsigned * const x, unsigned * const y,
unsigned * const width, unsigned * const height,
- uint64_t * const ceiling, boolean * const dyn_ceiling,
- boolean *reset_colors, boolean *sort_items)
+ uint64_t * const ceiling, bool * const dyn_ceiling,
+ bool *reset_colors, bool *sort_items)
{
char *ret = str;
unsigned tmp;
return ret;
}
-static boolean
+static bool
has_occlusion_query(struct pipe_screen *screen)
{
return screen->get_param(screen, PIPE_CAP_OCCLUSION_QUERY) != 0;
}
-static boolean
+static bool
has_streamout(struct pipe_screen *screen)
{
return screen->get_param(screen, PIPE_CAP_MAX_STREAM_OUTPUT_BUFFERS) != 0;
}
-static boolean
+static bool
has_pipeline_stats_query(struct pipe_screen *screen)
{
return screen->get_param(screen, PIPE_CAP_QUERY_PIPELINE_STATISTICS) != 0;
unsigned period = period_ms * 1000;
uint64_t ceiling = UINT64_MAX;
unsigned column_width = 251;
- boolean dyn_ceiling = false;
- boolean reset_colors = false;
- boolean sort_items = false;
- boolean to_stdout = false;
+ bool dyn_ceiling = false;
+ bool reset_colors = false;
+ bool sort_items = false;
+ bool to_stdout = false;
const char *period_env;
if (strncmp(env, "simple,", 7) == 0) {
to_stdout = true;
}
else {
- boolean processed = FALSE;
+ bool processed = false;
/* pipeline statistics queries */
if (has_pipeline_stats_query(screen)) {
0, PIPE_DRIVER_QUERY_TYPE_UINT64,
PIPE_DRIVER_QUERY_RESULT_TYPE_AVERAGE,
0);
- processed = TRUE;
+ processed = true;
}
}
#endif
if (screen->get_driver_query_info){
- boolean skipping = false;
+ bool skipping = false;
struct pipe_driver_query_info info;
num_queries = screen->get_driver_query_info(screen, 0, NULL);
util_make_fragment_passthrough_shader(pipe,
TGSI_SEMANTIC_COLOR,
TGSI_INTERPOLATE_CONSTANT,
- TRUE);
+ true);
/* text fragment shader */
{
emulate_libgl_show_fps ? "stdout,fps" : NULL);
#if DETECT_OS_UNIX
unsigned signo = debug_get_num_option("GALLIUM_HUD_TOGGLE_SIGNAL", 0);
- static boolean sig_handled = FALSE;
+ static bool sig_handled = false;
struct sigaction action;
memset(&action, 0, sizeof(action));
fprintf(stderr, "gallium_hud: unable to set handler for signal %u\n", signo);
fflush(stderr);
- sig_handled = TRUE;
+ sig_handled = true;
}
#endif