gallium: switch boolean -> bool at the interface definitions
This is a relatively minimal change to adjust all the gallium interfaces
to use bool instead of boolean. I tried to avoid making unrelated
changes inside of drivers to flip boolean -> bool to reduce the risk of
regressions (the compiler will much more easily allow "dirty" values
inside a char-based boolean than a C99 _Bool).
This has been build-tested on amd64 with:
Gallium drivers: nouveau r300 r600 radeonsi freedreno swrast etnaviv v3d
vc4 i915 svga virgl swr panfrost iris lima kmsro
Gallium st: mesa xa xvmc xvmc vdpau va
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
@@ -106,7 +106,7 @@ dd_context_destroy_query(struct pipe_context *_pipe,
|
||||
FREE(query);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
dd_context_begin_query(struct pipe_context *_pipe, struct pipe_query *query)
|
||||
{
|
||||
struct dd_context *dctx = dd_context(_pipe);
|
||||
@@ -124,9 +124,9 @@ dd_context_end_query(struct pipe_context *_pipe, struct pipe_query *query)
|
||||
return pipe->end_query(pipe, dd_query_unwrap(query));
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
dd_context_get_query_result(struct pipe_context *_pipe,
|
||||
struct pipe_query *query, boolean wait,
|
||||
struct pipe_query *query, bool wait,
|
||||
union pipe_query_result *result)
|
||||
{
|
||||
struct pipe_context *pipe = dd_context(_pipe)->pipe;
|
||||
@@ -135,7 +135,7 @@ dd_context_get_query_result(struct pipe_context *_pipe,
|
||||
}
|
||||
|
||||
static void
|
||||
dd_context_set_active_query_state(struct pipe_context *_pipe, boolean enable)
|
||||
dd_context_set_active_query_state(struct pipe_context *_pipe, bool enable)
|
||||
{
|
||||
struct pipe_context *pipe = dd_context(_pipe)->pipe;
|
||||
|
||||
@@ -144,7 +144,7 @@ dd_context_set_active_query_state(struct pipe_context *_pipe, boolean enable)
|
||||
|
||||
static void
|
||||
dd_context_render_condition(struct pipe_context *_pipe,
|
||||
struct pipe_query *query, boolean condition,
|
||||
struct pipe_query *query, bool condition,
|
||||
enum pipe_render_cond_flag mode)
|
||||
{
|
||||
struct dd_context *dctx = dd_context(_pipe);
|
||||
@@ -411,7 +411,7 @@ static void dd_context_set_tess_state(struct pipe_context *_pipe,
|
||||
}
|
||||
|
||||
static void dd_context_set_window_rectangles(struct pipe_context *_pipe,
|
||||
boolean include,
|
||||
bool include,
|
||||
unsigned num_rectangles,
|
||||
const struct pipe_scissor_state *rects)
|
||||
{
|
||||
|
||||
@@ -1397,7 +1397,7 @@ dd_context_blit(struct pipe_context *_pipe, const struct pipe_blit_info *info)
|
||||
dd_after_draw(dctx, record);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
dd_context_generate_mipmap(struct pipe_context *_pipe,
|
||||
struct pipe_resource *res,
|
||||
enum pipe_format format,
|
||||
@@ -1409,7 +1409,7 @@ dd_context_generate_mipmap(struct pipe_context *_pipe,
|
||||
struct dd_context *dctx = dd_context(_pipe);
|
||||
struct pipe_context *pipe = dctx->pipe;
|
||||
struct dd_draw_record *record = dd_create_record(dctx);
|
||||
boolean result;
|
||||
bool result;
|
||||
|
||||
record->call.type = CALL_GENERATE_MIPMAP;
|
||||
record->call.info.generate_mipmap.res = NULL;
|
||||
@@ -1430,7 +1430,7 @@ dd_context_generate_mipmap(struct pipe_context *_pipe,
|
||||
static void
|
||||
dd_context_get_query_result_resource(struct pipe_context *_pipe,
|
||||
struct pipe_query *query,
|
||||
boolean wait,
|
||||
bool wait,
|
||||
enum pipe_query_value_type result_type,
|
||||
int index,
|
||||
struct pipe_resource *resource,
|
||||
|
||||
@@ -128,7 +128,7 @@ struct call_draw_info {
|
||||
struct call_get_query_result_resource {
|
||||
struct pipe_query *query;
|
||||
enum pipe_query_type query_type;
|
||||
boolean wait;
|
||||
bool wait;
|
||||
enum pipe_query_value_type result_type;
|
||||
int index;
|
||||
struct pipe_resource *resource;
|
||||
|
||||
@@ -142,7 +142,7 @@ dd_screen_context_create(struct pipe_screen *_screen, void *priv,
|
||||
screen->context_create(screen, priv, flags));
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
dd_screen_is_format_supported(struct pipe_screen *_screen,
|
||||
enum pipe_format format,
|
||||
enum pipe_texture_target target,
|
||||
@@ -156,7 +156,7 @@ dd_screen_is_format_supported(struct pipe_screen *_screen,
|
||||
storage_sample_count, tex_usage);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
dd_screen_can_create_resource(struct pipe_screen *_screen,
|
||||
const struct pipe_resource *templat)
|
||||
{
|
||||
@@ -298,7 +298,7 @@ dd_screen_resource_destroy(struct pipe_screen *_screen,
|
||||
screen->resource_destroy(screen, res);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
dd_screen_resource_get_handle(struct pipe_screen *_screen,
|
||||
struct pipe_context *_pipe,
|
||||
struct pipe_resource *resource,
|
||||
@@ -347,7 +347,7 @@ dd_screen_fence_reference(struct pipe_screen *_screen,
|
||||
screen->fence_reference(screen, pdst, src);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
dd_screen_fence_finish(struct pipe_screen *_screen,
|
||||
struct pipe_context *_ctx,
|
||||
struct pipe_fence_handle *fence,
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
#include "util/u_upload_mgr.h"
|
||||
#include "noop_public.h"
|
||||
|
||||
DEBUG_GET_ONCE_BOOL_OPTION(noop, "GALLIUM_NOOP", FALSE)
|
||||
DEBUG_GET_ONCE_BOOL_OPTION(noop, "GALLIUM_NOOP", false)
|
||||
|
||||
void noop_init_state_functions(struct pipe_context *ctx);
|
||||
|
||||
@@ -59,7 +59,7 @@ static void noop_destroy_query(struct pipe_context *ctx, struct pipe_query *quer
|
||||
FREE(query);
|
||||
}
|
||||
|
||||
static boolean noop_begin_query(struct pipe_context *ctx, struct pipe_query *query)
|
||||
static bool noop_begin_query(struct pipe_context *ctx, struct pipe_query *query)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -69,19 +69,19 @@ static bool noop_end_query(struct pipe_context *ctx, struct pipe_query *query)
|
||||
return true;
|
||||
}
|
||||
|
||||
static boolean noop_get_query_result(struct pipe_context *ctx,
|
||||
struct pipe_query *query,
|
||||
boolean wait,
|
||||
union pipe_query_result *vresult)
|
||||
static bool noop_get_query_result(struct pipe_context *ctx,
|
||||
struct pipe_query *query,
|
||||
bool wait,
|
||||
union pipe_query_result *vresult)
|
||||
{
|
||||
uint64_t *result = (uint64_t*)vresult;
|
||||
|
||||
*result = 0;
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
static void
|
||||
noop_set_active_query_state(struct pipe_context *pipe, boolean enable)
|
||||
noop_set_active_query_state(struct pipe_context *pipe, bool enable)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -135,11 +135,11 @@ static struct pipe_resource *noop_resource_from_handle(struct pipe_screen *scree
|
||||
return noop_resource;
|
||||
}
|
||||
|
||||
static boolean noop_resource_get_handle(struct pipe_screen *pscreen,
|
||||
struct pipe_context *ctx,
|
||||
struct pipe_resource *resource,
|
||||
struct winsys_handle *handle,
|
||||
unsigned usage)
|
||||
static bool noop_resource_get_handle(struct pipe_screen *pscreen,
|
||||
struct pipe_context *ctx,
|
||||
struct pipe_resource *resource,
|
||||
struct winsys_handle *handle,
|
||||
unsigned usage)
|
||||
{
|
||||
struct noop_pipe_screen *noop_screen = (struct noop_pipe_screen*)pscreen;
|
||||
struct pipe_screen *screen = noop_screen->oscreen;
|
||||
@@ -296,13 +296,13 @@ static void noop_destroy_context(struct pipe_context *ctx)
|
||||
FREE(ctx);
|
||||
}
|
||||
|
||||
static boolean noop_generate_mipmap(struct pipe_context *ctx,
|
||||
struct pipe_resource *resource,
|
||||
enum pipe_format format,
|
||||
unsigned base_level,
|
||||
unsigned last_level,
|
||||
unsigned first_layer,
|
||||
unsigned last_layer)
|
||||
static bool noop_generate_mipmap(struct pipe_context *ctx,
|
||||
struct pipe_resource *resource,
|
||||
enum pipe_format format,
|
||||
unsigned base_level,
|
||||
unsigned last_level,
|
||||
unsigned first_layer,
|
||||
unsigned last_layer)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -423,12 +423,12 @@ static int noop_get_compute_param(struct pipe_screen *pscreen,
|
||||
return screen->get_compute_param(screen, ir_type, param, ret);
|
||||
}
|
||||
|
||||
static boolean noop_is_format_supported(struct pipe_screen* pscreen,
|
||||
enum pipe_format format,
|
||||
enum pipe_texture_target target,
|
||||
unsigned sample_count,
|
||||
unsigned storage_sample_count,
|
||||
unsigned usage)
|
||||
static bool noop_is_format_supported(struct pipe_screen* pscreen,
|
||||
enum pipe_format format,
|
||||
enum pipe_texture_target target,
|
||||
unsigned sample_count,
|
||||
unsigned storage_sample_count,
|
||||
unsigned usage)
|
||||
{
|
||||
struct pipe_screen *screen = ((struct noop_pipe_screen*)pscreen)->oscreen;
|
||||
|
||||
@@ -456,10 +456,10 @@ static void noop_fence_reference(struct pipe_screen *screen,
|
||||
{
|
||||
}
|
||||
|
||||
static boolean noop_fence_finish(struct pipe_screen *screen,
|
||||
struct pipe_context *ctx,
|
||||
struct pipe_fence_handle *fence,
|
||||
uint64_t timeout)
|
||||
static bool noop_fence_finish(struct pipe_screen *screen,
|
||||
struct pipe_context *ctx,
|
||||
struct pipe_fence_handle *fence,
|
||||
uint64_t timeout)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -248,7 +248,7 @@ static void noop_set_stream_output_targets(struct pipe_context *ctx,
|
||||
}
|
||||
|
||||
static void noop_set_window_rectangles(struct pipe_context *ctx,
|
||||
boolean include,
|
||||
bool include,
|
||||
unsigned num_rectangles,
|
||||
const struct pipe_scissor_state *rects)
|
||||
{
|
||||
|
||||
@@ -63,7 +63,7 @@ rbug_draw_block_locked(struct rbug_context *rb_pipe, int flag)
|
||||
} else if ((rb_pipe->draw_rule.blocker & flag) &&
|
||||
(rb_pipe->draw_blocker & RBUG_BLOCK_RULE)) {
|
||||
unsigned k;
|
||||
boolean block = FALSE;
|
||||
bool block = false;
|
||||
unsigned sh;
|
||||
|
||||
debug_printf("%s (%p %p) (%p %p) (%p %u) (%p %u)\n", __FUNCTION__,
|
||||
@@ -76,21 +76,21 @@ rbug_draw_block_locked(struct rbug_context *rb_pipe, int flag)
|
||||
for (sh = 0; sh < PIPE_SHADER_TYPES; sh++) {
|
||||
if (rb_pipe->draw_rule.shader[sh] &&
|
||||
rb_pipe->draw_rule.shader[sh] == rb_pipe->curr.shader[sh])
|
||||
block = TRUE;
|
||||
block = true;
|
||||
}
|
||||
|
||||
if (rb_pipe->draw_rule.surf &&
|
||||
rb_pipe->draw_rule.surf == rb_pipe->curr.zsbuf)
|
||||
block = TRUE;
|
||||
block = true;
|
||||
if (rb_pipe->draw_rule.surf)
|
||||
for (k = 0; k < rb_pipe->curr.nr_cbufs; k++)
|
||||
if (rb_pipe->draw_rule.surf == rb_pipe->curr.cbufs[k])
|
||||
block = TRUE;
|
||||
block = true;
|
||||
if (rb_pipe->draw_rule.texture) {
|
||||
for (sh = 0; sh < ARRAY_SIZE(rb_pipe->curr.num_views); sh++) {
|
||||
for (k = 0; k < rb_pipe->curr.num_views[sh]; k++) {
|
||||
if (rb_pipe->draw_rule.texture == rb_pipe->curr.texs[sh][k]) {
|
||||
block = TRUE;
|
||||
block = true;
|
||||
sh = PIPE_SHADER_TYPES; /* to break out of both loops */
|
||||
break;
|
||||
}
|
||||
@@ -164,13 +164,13 @@ rbug_destroy_query(struct pipe_context *_pipe,
|
||||
mtx_unlock(&rb_pipe->call_mutex);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
rbug_begin_query(struct pipe_context *_pipe,
|
||||
struct pipe_query *query)
|
||||
{
|
||||
struct rbug_context *rb_pipe = rbug_context(_pipe);
|
||||
struct pipe_context *pipe = rb_pipe->pipe;
|
||||
boolean ret;
|
||||
bool ret;
|
||||
|
||||
mtx_lock(&rb_pipe->call_mutex);
|
||||
ret = pipe->begin_query(pipe, query);
|
||||
@@ -194,15 +194,15 @@ rbug_end_query(struct pipe_context *_pipe,
|
||||
return ret;
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
rbug_get_query_result(struct pipe_context *_pipe,
|
||||
struct pipe_query *query,
|
||||
boolean wait,
|
||||
bool wait,
|
||||
union pipe_query_result *result)
|
||||
{
|
||||
struct rbug_context *rb_pipe = rbug_context(_pipe);
|
||||
struct pipe_context *pipe = rb_pipe->pipe;
|
||||
boolean ret;
|
||||
bool ret;
|
||||
|
||||
mtx_lock(&rb_pipe->call_mutex);
|
||||
ret = pipe->get_query_result(pipe,
|
||||
@@ -215,7 +215,7 @@ rbug_get_query_result(struct pipe_context *_pipe,
|
||||
}
|
||||
|
||||
static void
|
||||
rbug_set_active_query_state(struct pipe_context *_pipe, boolean enable)
|
||||
rbug_set_active_query_state(struct pipe_context *_pipe, bool enable)
|
||||
{
|
||||
struct rbug_context *rb_pipe = rbug_context(_pipe);
|
||||
struct pipe_context *pipe = rb_pipe->pipe;
|
||||
@@ -1266,7 +1266,7 @@ rbug_context_create(struct pipe_screen *_screen, struct pipe_context *pipe)
|
||||
|
||||
rbug_screen_add_to_list(rb_screen, contexts, rb_pipe);
|
||||
|
||||
if (debug_get_bool_option("GALLIUM_RBUG_START_BLOCKED", FALSE)) {
|
||||
if (debug_get_bool_option("GALLIUM_RBUG_START_BLOCKED", false)) {
|
||||
rb_pipe->draw_blocked = RBUG_BLOCK_BEFORE;
|
||||
}
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ struct rbug_rbug
|
||||
struct rbug_screen *rb_screen;
|
||||
struct rbug_connection *con;
|
||||
thrd_t thread;
|
||||
boolean running;
|
||||
bool running;
|
||||
};
|
||||
|
||||
int
|
||||
@@ -713,7 +713,7 @@ err:
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
rbug_header(struct rbug_rbug *tr_rbug, struct rbug_header *header, uint32_t serial)
|
||||
{
|
||||
int ret = 0;
|
||||
@@ -774,7 +774,7 @@ rbug_header(struct rbug_rbug *tr_rbug, struct rbug_header *header, uint32_t seri
|
||||
if (ret)
|
||||
rbug_send_error_reply(tr_rbug->con, serial, ret, NULL);
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -856,7 +856,7 @@ rbug_start(struct rbug_screen *rb_screen)
|
||||
return NULL;
|
||||
|
||||
tr_rbug->rb_screen = rb_screen;
|
||||
tr_rbug->running = TRUE;
|
||||
tr_rbug->running = true;
|
||||
tr_rbug->thread = u_thread_create(rbug_thread, tr_rbug);
|
||||
|
||||
return tr_rbug;
|
||||
|
||||
@@ -64,7 +64,7 @@ struct rbug_shader
|
||||
void *replaced_tokens;
|
||||
|
||||
enum rbug_shader_type type;
|
||||
boolean disabled;
|
||||
bool disabled;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ struct pipe_context;
|
||||
struct pipe_screen *
|
||||
rbug_screen_create(struct pipe_screen *screen);
|
||||
|
||||
boolean
|
||||
bool
|
||||
rbug_enabled(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
#include "rbug_context.h"
|
||||
#include "rbug_objects.h"
|
||||
|
||||
DEBUG_GET_ONCE_BOOL_OPTION(rbug, "GALLIUM_RBUG", FALSE)
|
||||
DEBUG_GET_ONCE_BOOL_OPTION(rbug, "GALLIUM_RBUG", false)
|
||||
|
||||
static void
|
||||
rbug_screen_destroy(struct pipe_screen *_screen)
|
||||
@@ -119,7 +119,7 @@ rbug_screen_get_paramf(struct pipe_screen *_screen,
|
||||
param);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
rbug_screen_is_format_supported(struct pipe_screen *_screen,
|
||||
enum pipe_format format,
|
||||
enum pipe_texture_target target,
|
||||
@@ -198,7 +198,7 @@ rbug_screen_check_resource_capability(struct pipe_screen *_screen,
|
||||
return screen->check_resource_capability(screen, resource, bind);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
rbug_screen_resource_get_handle(struct pipe_screen *_screen,
|
||||
struct pipe_context *_pipe,
|
||||
struct pipe_resource *_resource,
|
||||
@@ -279,7 +279,7 @@ rbug_screen_fence_reference(struct pipe_screen *_screen,
|
||||
fence);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
rbug_screen_fence_finish(struct pipe_screen *_screen,
|
||||
struct pipe_context *_ctx,
|
||||
struct pipe_fence_handle *fence,
|
||||
@@ -292,7 +292,7 @@ rbug_screen_fence_finish(struct pipe_screen *_screen,
|
||||
return screen->fence_finish(screen, ctx, fence, timeout);
|
||||
}
|
||||
|
||||
boolean
|
||||
bool
|
||||
rbug_enabled()
|
||||
{
|
||||
return debug_get_option_rbug();
|
||||
|
||||
@@ -167,13 +167,13 @@ trace_context_destroy_query(struct pipe_context *_pipe,
|
||||
}
|
||||
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
trace_context_begin_query(struct pipe_context *_pipe,
|
||||
struct pipe_query *query)
|
||||
{
|
||||
struct trace_context *tr_ctx = trace_context(_pipe);
|
||||
struct pipe_context *pipe = tr_ctx->pipe;
|
||||
boolean ret;
|
||||
bool ret;
|
||||
|
||||
query = trace_query_unwrap(query);
|
||||
|
||||
@@ -211,17 +211,17 @@ trace_context_end_query(struct pipe_context *_pipe,
|
||||
}
|
||||
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
trace_context_get_query_result(struct pipe_context *_pipe,
|
||||
struct pipe_query *_query,
|
||||
boolean wait,
|
||||
bool wait,
|
||||
union pipe_query_result *result)
|
||||
{
|
||||
struct trace_context *tr_ctx = trace_context(_pipe);
|
||||
struct pipe_context *pipe = tr_ctx->pipe;
|
||||
struct trace_query *tr_query = trace_query(_query);
|
||||
struct pipe_query *query = tr_query->query;
|
||||
boolean ret;
|
||||
bool ret;
|
||||
|
||||
trace_dump_call_begin("pipe_context", "get_query_result");
|
||||
|
||||
@@ -248,7 +248,7 @@ trace_context_get_query_result(struct pipe_context *_pipe,
|
||||
|
||||
static void
|
||||
trace_context_set_active_query_state(struct pipe_context *_pipe,
|
||||
boolean enable)
|
||||
bool enable)
|
||||
{
|
||||
struct trace_context *tr_ctx = trace_context(_pipe);
|
||||
struct pipe_context *pipe = tr_ctx->pipe;
|
||||
@@ -1356,7 +1356,7 @@ trace_context_fence_server_sync(struct pipe_context *_pipe,
|
||||
}
|
||||
|
||||
|
||||
static inline boolean
|
||||
static inline bool
|
||||
trace_context_generate_mipmap(struct pipe_context *_pipe,
|
||||
struct pipe_resource *res,
|
||||
enum pipe_format format,
|
||||
@@ -1367,7 +1367,7 @@ trace_context_generate_mipmap(struct pipe_context *_pipe,
|
||||
{
|
||||
struct trace_context *tr_ctx = trace_context(_pipe);
|
||||
struct pipe_context *pipe = tr_ctx->pipe;
|
||||
boolean ret;
|
||||
bool ret;
|
||||
|
||||
trace_dump_call_begin("pipe_context", "generate_mipmap");
|
||||
|
||||
@@ -1640,7 +1640,7 @@ trace_context_set_context_param(struct pipe_context *_context,
|
||||
static void
|
||||
trace_context_render_condition(struct pipe_context *_context,
|
||||
struct pipe_query *query,
|
||||
boolean condition,
|
||||
bool condition,
|
||||
enum pipe_render_cond_flag mode)
|
||||
{
|
||||
struct trace_context *tr_context = trace_context(_context);
|
||||
|
||||
@@ -57,11 +57,11 @@
|
||||
#include "tr_texture.h"
|
||||
|
||||
|
||||
static boolean close_stream = FALSE;
|
||||
static bool close_stream = false;
|
||||
static FILE *stream = NULL;
|
||||
static mtx_t call_mutex = _MTX_INITIALIZER_NP;
|
||||
static long unsigned call_no = 0;
|
||||
static boolean dumping = FALSE;
|
||||
static bool dumping = false;
|
||||
|
||||
|
||||
static inline void
|
||||
@@ -178,7 +178,7 @@ trace_dump_trace_close(void)
|
||||
trace_dump_writes("</trace>\n");
|
||||
if (close_stream) {
|
||||
fclose(stream);
|
||||
close_stream = FALSE;
|
||||
close_stream = false;
|
||||
stream = NULL;
|
||||
}
|
||||
call_no = 0;
|
||||
@@ -199,30 +199,30 @@ trace_dump_call_time(int64_t time)
|
||||
}
|
||||
|
||||
|
||||
boolean
|
||||
bool
|
||||
trace_dump_trace_begin(void)
|
||||
{
|
||||
const char *filename;
|
||||
|
||||
filename = debug_get_option("GALLIUM_TRACE", NULL);
|
||||
if (!filename)
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
if (!stream) {
|
||||
|
||||
if (strcmp(filename, "stderr") == 0) {
|
||||
close_stream = FALSE;
|
||||
close_stream = false;
|
||||
stream = stderr;
|
||||
}
|
||||
else if (strcmp(filename, "stdout") == 0) {
|
||||
close_stream = FALSE;
|
||||
close_stream = false;
|
||||
stream = stdout;
|
||||
}
|
||||
else {
|
||||
close_stream = TRUE;
|
||||
close_stream = true;
|
||||
stream = fopen(filename, "wt");
|
||||
if (!stream)
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
trace_dump_writes("<?xml version='1.0' encoding='UTF-8'?>\n");
|
||||
@@ -236,12 +236,12 @@ trace_dump_trace_begin(void)
|
||||
atexit(trace_dump_trace_close);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
boolean trace_dump_trace_enabled(void)
|
||||
bool trace_dump_trace_enabled(void)
|
||||
{
|
||||
return stream ? TRUE : FALSE;
|
||||
return stream ? true : false;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -264,15 +264,15 @@ void trace_dump_call_unlock(void)
|
||||
|
||||
void trace_dumping_start_locked(void)
|
||||
{
|
||||
dumping = TRUE;
|
||||
dumping = true;
|
||||
}
|
||||
|
||||
void trace_dumping_stop_locked(void)
|
||||
{
|
||||
dumping = FALSE;
|
||||
dumping = false;
|
||||
}
|
||||
|
||||
boolean trace_dumping_enabled_locked(void)
|
||||
bool trace_dumping_enabled_locked(void)
|
||||
{
|
||||
return dumping;
|
||||
}
|
||||
@@ -291,9 +291,9 @@ void trace_dumping_stop(void)
|
||||
mtx_unlock(&call_mutex);
|
||||
}
|
||||
|
||||
boolean trace_dumping_enabled(void)
|
||||
bool trace_dumping_enabled(void)
|
||||
{
|
||||
boolean ret;
|
||||
bool ret;
|
||||
mtx_lock(&call_mutex);
|
||||
ret = trace_dumping_enabled_locked();
|
||||
mtx_unlock(&call_mutex);
|
||||
|
||||
@@ -47,8 +47,8 @@ struct pipe_box;
|
||||
*
|
||||
* Opening the trace file and checking if that is opened.
|
||||
*/
|
||||
boolean trace_dump_trace_begin(void);
|
||||
boolean trace_dump_trace_enabled(void);
|
||||
bool trace_dump_trace_begin(void);
|
||||
bool trace_dump_trace_enabled(void);
|
||||
void trace_dump_trace_flush(void);
|
||||
|
||||
/*
|
||||
@@ -68,10 +68,10 @@ void trace_dump_call_unlock(void);
|
||||
*/
|
||||
void trace_dumping_start_locked(void);
|
||||
void trace_dumping_stop_locked(void);
|
||||
boolean trace_dumping_enabled_locked(void);
|
||||
bool trace_dumping_enabled_locked(void);
|
||||
void trace_dumping_start(void);
|
||||
void trace_dumping_stop(void);
|
||||
boolean trace_dumping_enabled(void);
|
||||
bool trace_dumping_enabled(void);
|
||||
|
||||
void trace_dump_call_begin_locked(const char *klass, const char *method);
|
||||
void trace_dump_call_end_locked(void);
|
||||
|
||||
@@ -50,7 +50,7 @@ trace_dump_query_type(unsigned value)
|
||||
if (!trace_dumping_enabled_locked())
|
||||
return;
|
||||
|
||||
trace_dump_enum(util_str_query_type(value, FALSE));
|
||||
trace_dump_enum(util_str_query_type(value, false));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ struct pipe_context;
|
||||
struct pipe_screen *
|
||||
trace_screen_create(struct pipe_screen *screen);
|
||||
|
||||
boolean
|
||||
bool
|
||||
trace_enabled(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
#include "tr_public.h"
|
||||
|
||||
|
||||
static boolean trace = FALSE;
|
||||
static bool trace = false;
|
||||
|
||||
static const char *
|
||||
trace_screen_get_name(struct pipe_screen *_screen)
|
||||
@@ -220,7 +220,7 @@ trace_screen_get_compute_param(struct pipe_screen *_screen,
|
||||
}
|
||||
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
trace_screen_is_format_supported(struct pipe_screen *_screen,
|
||||
enum pipe_format format,
|
||||
enum pipe_texture_target target,
|
||||
@@ -230,7 +230,7 @@ trace_screen_is_format_supported(struct pipe_screen *_screen,
|
||||
{
|
||||
struct trace_screen *tr_scr = trace_screen(_screen);
|
||||
struct pipe_screen *screen = tr_scr->screen;
|
||||
boolean result;
|
||||
bool result;
|
||||
|
||||
trace_dump_call_begin("pipe_screen", "is_format_supported");
|
||||
|
||||
@@ -390,7 +390,7 @@ trace_screen_check_resource_capability(struct pipe_screen *_screen,
|
||||
return screen->check_resource_capability(screen, resource, bind);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
trace_screen_resource_get_handle(struct pipe_screen *_screen,
|
||||
struct pipe_context *_pipe,
|
||||
struct pipe_resource *resource,
|
||||
@@ -532,7 +532,7 @@ trace_screen_fence_get_fd(struct pipe_screen *_screen,
|
||||
}
|
||||
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
trace_screen_fence_finish(struct pipe_screen *_screen,
|
||||
struct pipe_context *_ctx,
|
||||
struct pipe_fence_handle *fence,
|
||||
@@ -637,18 +637,18 @@ trace_screen_destroy(struct pipe_screen *_screen)
|
||||
FREE(tr_scr);
|
||||
}
|
||||
|
||||
boolean
|
||||
bool
|
||||
trace_enabled(void)
|
||||
{
|
||||
static boolean firstrun = TRUE;
|
||||
static bool firstrun = true;
|
||||
|
||||
if (!firstrun)
|
||||
return trace;
|
||||
firstrun = FALSE;
|
||||
firstrun = false;
|
||||
|
||||
if(trace_dump_trace_begin()) {
|
||||
trace_dumping_start();
|
||||
trace = TRUE;
|
||||
trace = true;
|
||||
}
|
||||
|
||||
return trace;
|
||||
|
||||
@@ -309,7 +309,7 @@ threaded_context_unwrap_sync(struct pipe_context *pipe)
|
||||
*p = deref(param); \
|
||||
}
|
||||
|
||||
TC_FUNC1(set_active_query_state, flags, , boolean, , *)
|
||||
TC_FUNC1(set_active_query_state, flags, , bool, , *)
|
||||
|
||||
TC_FUNC1(set_blend_color, blend_color, const, struct pipe_blend_color, *, )
|
||||
TC_FUNC1(set_stencil_ref, stencil_ref, const, struct pipe_stencil_ref, *, )
|
||||
@@ -371,7 +371,7 @@ tc_call_begin_query(struct pipe_context *pipe, union tc_payload *payload)
|
||||
pipe->begin_query(pipe, payload->query);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
tc_begin_query(struct pipe_context *_pipe, struct pipe_query *query)
|
||||
{
|
||||
struct threaded_context *tc = threaded_context(_pipe);
|
||||
@@ -414,9 +414,9 @@ tc_end_query(struct pipe_context *_pipe, struct pipe_query *query)
|
||||
return true; /* we don't care about the return value for this call */
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
tc_get_query_result(struct pipe_context *_pipe,
|
||||
struct pipe_query *query, boolean wait,
|
||||
struct pipe_query *query, bool wait,
|
||||
union pipe_query_result *result)
|
||||
{
|
||||
struct threaded_context *tc = threaded_context(_pipe);
|
||||
@@ -440,7 +440,7 @@ tc_get_query_result(struct pipe_context *_pipe,
|
||||
|
||||
struct tc_query_result_resource {
|
||||
struct pipe_query *query;
|
||||
boolean wait;
|
||||
bool wait;
|
||||
enum pipe_query_value_type result_type;
|
||||
int index;
|
||||
struct pipe_resource *resource;
|
||||
@@ -460,7 +460,7 @@ tc_call_get_query_result_resource(struct pipe_context *pipe,
|
||||
|
||||
static void
|
||||
tc_get_query_result_resource(struct pipe_context *_pipe,
|
||||
struct pipe_query *query, boolean wait,
|
||||
struct pipe_query *query, bool wait,
|
||||
enum pipe_query_value_type result_type, int index,
|
||||
struct pipe_resource *resource, unsigned offset)
|
||||
{
|
||||
@@ -492,7 +492,7 @@ tc_call_render_condition(struct pipe_context *pipe, union tc_payload *payload)
|
||||
|
||||
static void
|
||||
tc_render_condition(struct pipe_context *_pipe,
|
||||
struct pipe_query *query, boolean condition,
|
||||
struct pipe_query *query, bool condition,
|
||||
enum pipe_render_cond_flag mode)
|
||||
{
|
||||
struct threaded_context *tc = threaded_context(_pipe);
|
||||
@@ -771,7 +771,7 @@ tc_call_set_window_rectangles(struct pipe_context *pipe,
|
||||
}
|
||||
|
||||
static void
|
||||
tc_set_window_rectangles(struct pipe_context *_pipe, boolean include,
|
||||
tc_set_window_rectangles(struct pipe_context *_pipe, bool include,
|
||||
unsigned count,
|
||||
const struct pipe_scissor_state *rects)
|
||||
{
|
||||
@@ -2232,7 +2232,7 @@ tc_call_generate_mipmap(struct pipe_context *pipe, union tc_payload *payload)
|
||||
pipe_resource_reference(&p->res, NULL);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
tc_generate_mipmap(struct pipe_context *_pipe,
|
||||
struct pipe_resource *res,
|
||||
enum pipe_format format,
|
||||
|
||||
@@ -85,9 +85,9 @@ void u_default_texture_subdata(struct pipe_context *pipe,
|
||||
}
|
||||
|
||||
|
||||
boolean u_default_resource_get_handle(UNUSED struct pipe_screen *screen,
|
||||
UNUSED struct pipe_resource *resource,
|
||||
UNUSED struct winsys_handle *handle)
|
||||
bool u_default_resource_get_handle(UNUSED struct pipe_screen *screen,
|
||||
UNUSED struct pipe_resource *resource,
|
||||
UNUSED struct winsys_handle *handle)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
@@ -114,11 +114,11 @@ u_resource( struct pipe_resource *res )
|
||||
return (struct u_resource *)res;
|
||||
}
|
||||
|
||||
boolean u_resource_get_handle_vtbl(struct pipe_screen *screen,
|
||||
UNUSED struct pipe_context *ctx,
|
||||
struct pipe_resource *resource,
|
||||
struct winsys_handle *handle,
|
||||
UNUSED unsigned usage)
|
||||
bool u_resource_get_handle_vtbl(struct pipe_screen *screen,
|
||||
UNUSED struct pipe_context *ctx,
|
||||
struct pipe_resource *resource,
|
||||
struct winsys_handle *handle,
|
||||
UNUSED unsigned usage)
|
||||
{
|
||||
struct u_resource *ur = u_resource(resource);
|
||||
return ur->vtbl->resource_get_handle(screen, resource, handle);
|
||||
|
||||
@@ -14,9 +14,9 @@ struct winsys_handle;
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
boolean u_default_resource_get_handle(struct pipe_screen *screen,
|
||||
struct pipe_resource *resource,
|
||||
struct winsys_handle *handle);
|
||||
bool u_default_resource_get_handle(struct pipe_screen *screen,
|
||||
struct pipe_resource *resource,
|
||||
struct winsys_handle *handle);
|
||||
|
||||
void u_default_buffer_subdata(struct pipe_context *pipe,
|
||||
struct pipe_resource *resource,
|
||||
@@ -46,9 +46,9 @@ void u_default_transfer_unmap( struct pipe_context *pipe,
|
||||
*/
|
||||
struct u_resource_vtbl {
|
||||
|
||||
boolean (*resource_get_handle)(struct pipe_screen *,
|
||||
struct pipe_resource *tex,
|
||||
struct winsys_handle *handle);
|
||||
bool (*resource_get_handle)(struct pipe_screen *,
|
||||
struct pipe_resource *tex,
|
||||
struct winsys_handle *handle);
|
||||
|
||||
void (*resource_destroy)(struct pipe_screen *,
|
||||
struct pipe_resource *pt);
|
||||
@@ -76,11 +76,11 @@ struct u_resource {
|
||||
};
|
||||
|
||||
|
||||
boolean u_resource_get_handle_vtbl(struct pipe_screen *screen,
|
||||
struct pipe_context *ctx,
|
||||
struct pipe_resource *resource,
|
||||
struct winsys_handle *handle,
|
||||
unsigned usage);
|
||||
bool u_resource_get_handle_vtbl(struct pipe_screen *screen,
|
||||
struct pipe_context *ctx,
|
||||
struct pipe_resource *resource,
|
||||
struct winsys_handle *handle,
|
||||
unsigned usage);
|
||||
|
||||
void u_resource_destroy_vtbl(struct pipe_screen *screen,
|
||||
struct pipe_resource *resource);
|
||||
|
||||
@@ -46,7 +46,7 @@ vl_video_buffer_formats(struct pipe_screen *screen, enum pipe_format format)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
boolean
|
||||
bool
|
||||
vl_video_buffer_is_format_supported(struct pipe_screen *screen,
|
||||
enum pipe_format format,
|
||||
enum pipe_video_profile profile,
|
||||
|
||||
@@ -172,7 +172,7 @@ vl_video_buffer_surface_format(enum pipe_format format)
|
||||
return format;
|
||||
}
|
||||
|
||||
boolean
|
||||
bool
|
||||
vl_video_buffer_is_format_supported(struct pipe_screen *screen,
|
||||
enum pipe_format format,
|
||||
enum pipe_video_profile profile,
|
||||
|
||||
@@ -88,7 +88,7 @@ vl_video_buffer_max_size(struct pipe_screen *screen);
|
||||
* check if video buffer format is supported for a codec/profile
|
||||
* can be used as default implementation of screen->is_video_format_supported
|
||||
*/
|
||||
boolean
|
||||
bool
|
||||
vl_video_buffer_is_format_supported(struct pipe_screen *screen,
|
||||
enum pipe_format format,
|
||||
enum pipe_video_profile profile,
|
||||
|
||||
@@ -60,7 +60,7 @@ etna_screen_fence_reference(struct pipe_screen *pscreen,
|
||||
*ptr = fence;
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
etna_screen_fence_finish(struct pipe_screen *pscreen, struct pipe_context *ctx,
|
||||
struct pipe_fence_handle *fence, uint64_t timeout)
|
||||
{
|
||||
|
||||
@@ -58,11 +58,11 @@ etna_destroy_query(struct pipe_context *pctx, struct pipe_query *pq)
|
||||
q->funcs->destroy_query(etna_context(pctx), q);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
etna_begin_query(struct pipe_context *pctx, struct pipe_query *pq)
|
||||
{
|
||||
struct etna_query *q = etna_query(pq);
|
||||
boolean ret;
|
||||
bool ret;
|
||||
|
||||
if (q->active)
|
||||
return false;
|
||||
@@ -87,9 +87,9 @@ etna_end_query(struct pipe_context *pctx, struct pipe_query *pq)
|
||||
return true;
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
etna_get_query_result(struct pipe_context *pctx, struct pipe_query *pq,
|
||||
boolean wait, union pipe_query_result *result)
|
||||
bool wait, union pipe_query_result *result)
|
||||
{
|
||||
struct etna_query *q = etna_query(pq);
|
||||
|
||||
@@ -134,7 +134,7 @@ etna_get_driver_query_group_info(struct pipe_screen *pscreen, unsigned index,
|
||||
}
|
||||
|
||||
static void
|
||||
etna_set_active_query_state(struct pipe_context *pctx, boolean enable)
|
||||
etna_set_active_query_state(struct pipe_context *pctx, bool enable)
|
||||
{
|
||||
struct etna_context *ctx = etna_context(pctx);
|
||||
|
||||
|
||||
@@ -35,10 +35,10 @@ struct etna_query;
|
||||
|
||||
struct etna_query_funcs {
|
||||
void (*destroy_query)(struct etna_context *ctx, struct etna_query *q);
|
||||
boolean (*begin_query)(struct etna_context *ctx, struct etna_query *q);
|
||||
bool (*begin_query)(struct etna_context *ctx, struct etna_query *q);
|
||||
void (*end_query)(struct etna_context *ctx, struct etna_query *q);
|
||||
boolean (*get_query_result)(struct etna_context *ctx, struct etna_query *q,
|
||||
boolean wait, union pipe_query_result *result);
|
||||
bool (*get_query_result)(struct etna_context *ctx, struct etna_query *q,
|
||||
bool wait, union pipe_query_result *result);
|
||||
};
|
||||
|
||||
struct etna_query {
|
||||
|
||||
@@ -138,7 +138,7 @@ realloc_query_bo(struct etna_context *ctx, struct etna_hw_query *hq)
|
||||
etna_bo_cpu_fini(rsc->bo);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
etna_hw_begin_query(struct etna_context *ctx, struct etna_query *q)
|
||||
{
|
||||
struct etna_hw_query *hq = etna_hw_query(q);
|
||||
@@ -168,9 +168,9 @@ etna_hw_end_query(struct etna_context *ctx, struct etna_query *q)
|
||||
list_delinit(&hq->node);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
etna_hw_get_query_result(struct etna_context *ctx, struct etna_query *q,
|
||||
boolean wait, union pipe_query_result *result)
|
||||
bool wait, union pipe_query_result *result)
|
||||
{
|
||||
struct etna_hw_query *hq = etna_hw_query(q);
|
||||
struct etna_resource *rsc = etna_resource(hq->prsc);
|
||||
|
||||
@@ -518,7 +518,7 @@ etna_pm_destroy_query(struct etna_context *ctx, struct etna_query *q)
|
||||
FREE(pq);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
etna_pm_begin_query(struct etna_context *ctx, struct etna_query *q)
|
||||
{
|
||||
struct etna_pm_query *pq = etna_pm_query(q);
|
||||
@@ -537,9 +537,9 @@ etna_pm_end_query(struct etna_context *ctx, struct etna_query *q)
|
||||
etna_pm_query_get(ctx->stream, q, ETNA_PM_PROCESS_POST);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
etna_pm_get_query_result(struct etna_context *ctx, struct etna_query *q,
|
||||
boolean wait, union pipe_query_result *result)
|
||||
bool wait, union pipe_query_result *result)
|
||||
{
|
||||
struct etna_pm_query *pq = etna_pm_query(q);
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ read_counter(struct etna_context *ctx, unsigned type)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
etna_sw_begin_query(struct etna_context *ctx, struct etna_query *q)
|
||||
{
|
||||
struct etna_sw_query *sq = etna_sw_query(q);
|
||||
@@ -74,9 +74,9 @@ etna_sw_end_query(struct etna_context *ctx, struct etna_query *q)
|
||||
sq->end_value = read_counter(ctx, q->type);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
etna_sw_get_query_result(struct etna_context *ctx, struct etna_query *q,
|
||||
boolean wait, union pipe_query_result *result)
|
||||
bool wait, union pipe_query_result *result)
|
||||
{
|
||||
struct etna_sw_query *sq = etna_sw_query(q);
|
||||
|
||||
|
||||
@@ -140,7 +140,7 @@ etna_screen_resource_alloc_ts(struct pipe_screen *pscreen,
|
||||
return true;
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
etna_screen_can_create_resource(struct pipe_screen *pscreen,
|
||||
const struct pipe_resource *templat)
|
||||
{
|
||||
@@ -624,7 +624,7 @@ fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
etna_resource_get_handle(struct pipe_screen *pscreen,
|
||||
struct pipe_context *pctx,
|
||||
struct pipe_resource *prsc,
|
||||
@@ -649,16 +649,16 @@ etna_resource_get_handle(struct pipe_screen *pscreen,
|
||||
return etna_bo_get_name(rsc->bo, &handle->handle) == 0;
|
||||
} else if (handle->type == WINSYS_HANDLE_TYPE_KMS) {
|
||||
if (renderonly_get_handle(scanout, handle)) {
|
||||
return TRUE;
|
||||
return true;
|
||||
} else {
|
||||
handle->handle = etna_bo_handle(rsc->bo);
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
} else if (handle->type == WINSYS_HANDLE_TYPE_FD) {
|
||||
handle->handle = etna_bo_dmabuf(rsc->bo);
|
||||
return TRUE;
|
||||
return true;
|
||||
} else {
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -386,7 +386,7 @@ gpu_supports_texure_format(struct etna_screen *screen, uint32_t fmt,
|
||||
return true;
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
etna_screen_is_format_supported(struct pipe_screen *pscreen,
|
||||
enum pipe_format format,
|
||||
enum pipe_texture_target target,
|
||||
@@ -403,7 +403,7 @@ etna_screen_is_format_supported(struct pipe_screen *pscreen,
|
||||
target != PIPE_TEXTURE_3D &&
|
||||
target != PIPE_TEXTURE_CUBE &&
|
||||
target != PIPE_TEXTURE_RECT)
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
if (MAX2(1, sample_count) != MAX2(1, storage_sample_count))
|
||||
return false;
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
#include "fd2_util.h"
|
||||
#include "fd2_resource.h"
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
fd2_screen_is_format_supported(struct pipe_screen *pscreen,
|
||||
enum pipe_format format,
|
||||
enum pipe_texture_target target,
|
||||
@@ -46,7 +46,7 @@ fd2_screen_is_format_supported(struct pipe_screen *pscreen,
|
||||
(sample_count > 1)) { /* TODO add MSAA */
|
||||
DBG("not supported: format=%s, target=%d, sample_count=%d, usage=%x",
|
||||
util_format_name(format), target, sample_count, usage);
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (MAX2(1, sample_count) != MAX2(1, storage_sample_count))
|
||||
@@ -65,7 +65,7 @@ fd2_screen_is_format_supported(struct pipe_screen *pscreen,
|
||||
(format != PIPE_FORMAT_R8G8B8X8_UNORM))) {
|
||||
DBG("not supported render target: format=%s, target=%d, sample_count=%d, usage=%x",
|
||||
util_format_name(format), target, sample_count, usage);
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
if ((usage & (PIPE_BIND_SAMPLER_VIEW |
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
#include "ir3/ir3_compiler.h"
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
fd3_screen_is_format_supported(struct pipe_screen *pscreen,
|
||||
enum pipe_format format,
|
||||
enum pipe_texture_target target,
|
||||
@@ -47,7 +47,7 @@ fd3_screen_is_format_supported(struct pipe_screen *pscreen,
|
||||
(sample_count > 1)) { /* TODO add MSAA */
|
||||
DBG("not supported: format=%s, target=%d, sample_count=%d, usage=%x",
|
||||
util_format_name(format), target, sample_count, usage);
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (MAX2(1, sample_count) != MAX2(1, storage_sample_count))
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
#include "ir3/ir3_compiler.h"
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
fd4_screen_is_format_supported(struct pipe_screen *pscreen,
|
||||
enum pipe_format format,
|
||||
enum pipe_texture_target target,
|
||||
@@ -47,7 +47,7 @@ fd4_screen_is_format_supported(struct pipe_screen *pscreen,
|
||||
(sample_count > 1)) { /* TODO add MSAA */
|
||||
DBG("not supported: format=%s, target=%d, sample_count=%d, usage=%x",
|
||||
util_format_name(format), target, sample_count, usage);
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (MAX2(1, sample_count) != MAX2(1, storage_sample_count))
|
||||
|
||||
@@ -49,7 +49,7 @@ valid_sample_count(unsigned sample_count)
|
||||
}
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
fd5_screen_is_format_supported(struct pipe_screen *pscreen,
|
||||
enum pipe_format format,
|
||||
enum pipe_texture_target target,
|
||||
@@ -63,7 +63,7 @@ fd5_screen_is_format_supported(struct pipe_screen *pscreen,
|
||||
!valid_sample_count(sample_count)) {
|
||||
DBG("not supported: format=%s, target=%d, sample_count=%d, usage=%x",
|
||||
util_format_name(format), target, sample_count, usage);
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (MAX2(1, sample_count) != MAX2(1, storage_sample_count))
|
||||
|
||||
@@ -55,7 +55,7 @@ valid_sample_count(unsigned sample_count)
|
||||
}
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
fd6_screen_is_format_supported(struct pipe_screen *pscreen,
|
||||
enum pipe_format format,
|
||||
enum pipe_texture_target target,
|
||||
@@ -69,7 +69,7 @@ fd6_screen_is_format_supported(struct pipe_screen *pscreen,
|
||||
!valid_sample_count(sample_count)) {
|
||||
DBG("not supported: format=%s, target=%d, sample_count=%d, usage=%x",
|
||||
util_format_name(format), target, sample_count, usage);
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (MAX2(1, sample_count) != MAX2(1, storage_sample_count))
|
||||
|
||||
@@ -80,7 +80,7 @@ void fd_fence_ref(struct pipe_screen *pscreen,
|
||||
*ptr = pfence;
|
||||
}
|
||||
|
||||
boolean fd_fence_finish(struct pipe_screen *pscreen,
|
||||
bool fd_fence_finish(struct pipe_screen *pscreen,
|
||||
struct pipe_context *ctx,
|
||||
struct pipe_fence_handle *fence,
|
||||
uint64_t timeout)
|
||||
|
||||
@@ -34,7 +34,7 @@ void fd_fence_populate(struct pipe_fence_handle *fence,
|
||||
void fd_fence_ref(struct pipe_screen *pscreen,
|
||||
struct pipe_fence_handle **ptr,
|
||||
struct pipe_fence_handle *pfence);
|
||||
boolean fd_fence_finish(struct pipe_screen *screen,
|
||||
bool fd_fence_finish(struct pipe_screen *screen,
|
||||
struct pipe_context *ctx,
|
||||
struct pipe_fence_handle *pfence,
|
||||
uint64_t timeout);
|
||||
|
||||
@@ -57,11 +57,11 @@ fd_destroy_query(struct pipe_context *pctx, struct pipe_query *pq)
|
||||
q->funcs->destroy_query(fd_context(pctx), q);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
fd_begin_query(struct pipe_context *pctx, struct pipe_query *pq)
|
||||
{
|
||||
struct fd_query *q = fd_query(pq);
|
||||
boolean ret;
|
||||
bool ret;
|
||||
|
||||
if (q->active)
|
||||
return false;
|
||||
@@ -92,9 +92,9 @@ fd_end_query(struct pipe_context *pctx, struct pipe_query *pq)
|
||||
return true;
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
fd_get_query_result(struct pipe_context *pctx, struct pipe_query *pq,
|
||||
boolean wait, union pipe_query_result *result)
|
||||
bool wait, union pipe_query_result *result)
|
||||
{
|
||||
struct fd_query *q = fd_query(pq);
|
||||
|
||||
@@ -108,7 +108,7 @@ fd_get_query_result(struct pipe_context *pctx, struct pipe_query *pq,
|
||||
|
||||
static void
|
||||
fd_render_condition(struct pipe_context *pctx, struct pipe_query *pq,
|
||||
boolean condition, enum pipe_render_cond_flag mode)
|
||||
bool condition, enum pipe_render_cond_flag mode)
|
||||
{
|
||||
struct fd_context *ctx = fd_context(pctx);
|
||||
ctx->cond_query = pq;
|
||||
@@ -187,7 +187,7 @@ fd_get_driver_query_group_info(struct pipe_screen *pscreen, unsigned index,
|
||||
}
|
||||
|
||||
static void
|
||||
fd_set_active_query_state(struct pipe_context *pipe, boolean enable)
|
||||
fd_set_active_query_state(struct pipe_context *pipe, bool enable)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -35,10 +35,10 @@ struct fd_query;
|
||||
struct fd_query_funcs {
|
||||
void (*destroy_query)(struct fd_context *ctx,
|
||||
struct fd_query *q);
|
||||
boolean (*begin_query)(struct fd_context *ctx, struct fd_query *q);
|
||||
bool (*begin_query)(struct fd_context *ctx, struct fd_query *q);
|
||||
void (*end_query)(struct fd_context *ctx, struct fd_query *q);
|
||||
boolean (*get_query_result)(struct fd_context *ctx,
|
||||
struct fd_query *q, boolean wait,
|
||||
bool (*get_query_result)(struct fd_context *ctx,
|
||||
struct fd_query *q, bool wait,
|
||||
union pipe_query_result *result);
|
||||
};
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ realloc_query_bo(struct fd_context *ctx, struct fd_acc_query *aq)
|
||||
fd_bo_cpu_fini(rsc->bo);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
fd_acc_begin_query(struct fd_context *ctx, struct fd_query *q)
|
||||
{
|
||||
struct fd_batch *batch = fd_context_batch(ctx);
|
||||
@@ -113,9 +113,9 @@ fd_acc_end_query(struct fd_context *ctx, struct fd_query *q)
|
||||
list_delinit(&aq->node);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
fd_acc_get_query_result(struct fd_context *ctx, struct fd_query *q,
|
||||
boolean wait, union pipe_query_result *result)
|
||||
bool wait, union pipe_query_result *result)
|
||||
{
|
||||
struct fd_acc_query *aq = fd_acc_query(q);
|
||||
const struct fd_acc_sample_provider *p = aq->provider;
|
||||
|
||||
@@ -132,7 +132,7 @@ fd_hw_destroy_query(struct fd_context *ctx, struct fd_query *q)
|
||||
free(hq);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
fd_hw_begin_query(struct fd_context *ctx, struct fd_query *q)
|
||||
{
|
||||
struct fd_batch *batch = fd_context_batch(ctx);
|
||||
@@ -174,9 +174,9 @@ static void * sampptr(struct fd_hw_sample *samp, uint32_t n, void *ptr)
|
||||
return ((char *)ptr) + (samp->tile_stride * n) + samp->offset;
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
fd_hw_get_query_result(struct fd_context *ctx, struct fd_query *q,
|
||||
boolean wait, union pipe_query_result *result)
|
||||
bool wait, union pipe_query_result *result)
|
||||
{
|
||||
struct fd_hw_query *hq = fd_hw_query(q);
|
||||
const struct fd_hw_sample_provider *p = hq->provider;
|
||||
|
||||
@@ -108,7 +108,7 @@ is_draw_rate_query(struct fd_query *q)
|
||||
}
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
fd_sw_begin_query(struct fd_context *ctx, struct fd_query *q)
|
||||
{
|
||||
struct fd_sw_query *sq = fd_sw_query(q);
|
||||
@@ -133,9 +133,9 @@ fd_sw_end_query(struct fd_context *ctx, struct fd_query *q)
|
||||
}
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
fd_sw_get_query_result(struct fd_context *ctx, struct fd_query *q,
|
||||
boolean wait, union pipe_query_result *result)
|
||||
bool wait, union pipe_query_result *result)
|
||||
{
|
||||
struct fd_sw_query *sq = fd_sw_query(q);
|
||||
|
||||
|
||||
@@ -747,7 +747,7 @@ fd_resource_modifier(struct fd_resource *rsc)
|
||||
return DRM_FORMAT_MOD_INVALID;
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
fd_resource_get_handle(struct pipe_screen *pscreen,
|
||||
struct pipe_context *pctx,
|
||||
struct pipe_resource *prsc,
|
||||
|
||||
@@ -667,7 +667,7 @@ fd_get_compiler_options(struct pipe_screen *pscreen,
|
||||
return ir2_get_compiler_options();
|
||||
}
|
||||
|
||||
boolean
|
||||
bool
|
||||
fd_screen_bo_get_handle(struct pipe_screen *pscreen,
|
||||
struct fd_bo *bo,
|
||||
struct renderonly_scanout *scanout,
|
||||
@@ -680,14 +680,14 @@ fd_screen_bo_get_handle(struct pipe_screen *pscreen,
|
||||
return fd_bo_get_name(bo, &whandle->handle) == 0;
|
||||
} else if (whandle->type == WINSYS_HANDLE_TYPE_KMS) {
|
||||
if (renderonly_get_handle(scanout, whandle))
|
||||
return TRUE;
|
||||
return true;
|
||||
whandle->handle = fd_bo_handle(bo);
|
||||
return TRUE;
|
||||
return true;
|
||||
} else if (whandle->type == WINSYS_HANDLE_TYPE_FD) {
|
||||
whandle->handle = fd_bo_dmabuf(bo);
|
||||
return TRUE;
|
||||
return true;
|
||||
} else {
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -114,7 +114,7 @@ fd_screen(struct pipe_screen *pscreen)
|
||||
return (struct fd_screen *)pscreen;
|
||||
}
|
||||
|
||||
boolean fd_screen_bo_get_handle(struct pipe_screen *pscreen,
|
||||
bool fd_screen_bo_get_handle(struct pipe_screen *pscreen,
|
||||
struct fd_bo *bo,
|
||||
struct renderonly_scanout *scanout,
|
||||
unsigned stride,
|
||||
|
||||
@@ -54,7 +54,7 @@ static void i915_destroy_query(struct pipe_context *ctx,
|
||||
FREE(query);
|
||||
}
|
||||
|
||||
static boolean i915_begin_query(struct pipe_context *ctx,
|
||||
static bool i915_begin_query(struct pipe_context *ctx,
|
||||
struct pipe_query *query)
|
||||
{
|
||||
return true;
|
||||
@@ -65,20 +65,20 @@ static bool i915_end_query(struct pipe_context *ctx, struct pipe_query *query)
|
||||
return true;
|
||||
}
|
||||
|
||||
static boolean i915_get_query_result(struct pipe_context *ctx,
|
||||
struct pipe_query *query,
|
||||
boolean wait,
|
||||
union pipe_query_result *vresult)
|
||||
static bool i915_get_query_result(struct pipe_context *ctx,
|
||||
struct pipe_query *query,
|
||||
bool wait,
|
||||
union pipe_query_result *vresult)
|
||||
{
|
||||
uint64_t *result = (uint64_t*)vresult;
|
||||
|
||||
/* 2* viewport Max */
|
||||
*result = 512*1024*1024;
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
static void
|
||||
i915_set_active_query_state(struct pipe_context *pipe, boolean enable)
|
||||
i915_set_active_query_state(struct pipe_context *pipe, bool enable)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
i915_buffer_get_handle(struct pipe_screen *screen,
|
||||
struct pipe_resource *resource,
|
||||
struct winsys_handle *handle)
|
||||
|
||||
@@ -681,7 +681,7 @@ i945_texture_layout(struct i915_texture * tex)
|
||||
|
||||
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
i915_texture_get_handle(struct pipe_screen * screen,
|
||||
struct pipe_resource *texture,
|
||||
struct winsys_handle *whandle)
|
||||
|
||||
@@ -471,7 +471,7 @@ i915_get_paramf(struct pipe_screen *screen, enum pipe_capf cap)
|
||||
}
|
||||
}
|
||||
|
||||
boolean
|
||||
bool
|
||||
i915_is_format_supported(struct pipe_screen *screen,
|
||||
enum pipe_format format,
|
||||
enum pipe_texture_target target,
|
||||
@@ -530,7 +530,7 @@ i915_is_format_supported(struct pipe_screen *screen,
|
||||
uint i;
|
||||
|
||||
if (sample_count > 1)
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
if (MAX2(1, sample_count) != MAX2(1, storage_sample_count))
|
||||
return false;
|
||||
@@ -542,14 +542,14 @@ i915_is_format_supported(struct pipe_screen *screen,
|
||||
else if (tex_usage & PIPE_BIND_SAMPLER_VIEW)
|
||||
list = tex_supported;
|
||||
else
|
||||
return TRUE; /* PIPE_BIND_{VERTEX,INDEX}_BUFFER */
|
||||
return true; /* PIPE_BIND_{VERTEX,INDEX}_BUFFER */
|
||||
|
||||
for (i = 0; list[i] != PIPE_FORMAT_NONE; i++) {
|
||||
if (list[i] == format)
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -568,7 +568,7 @@ i915_fence_reference(struct pipe_screen *screen,
|
||||
is->iws->fence_reference(is->iws, ptr, fence);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
i915_fence_finish(struct pipe_screen *screen,
|
||||
struct pipe_context *ctx,
|
||||
struct pipe_fence_handle *fence,
|
||||
|
||||
@@ -65,7 +65,7 @@ i915_screen(struct pipe_screen *pscreen)
|
||||
return (struct i915_screen *) pscreen;
|
||||
}
|
||||
|
||||
boolean
|
||||
bool
|
||||
i915_is_format_supported(struct pipe_screen *screen,
|
||||
enum pipe_format format,
|
||||
enum pipe_texture_target target,
|
||||
|
||||
@@ -225,7 +225,7 @@ rel2abs(uint64_t timeout)
|
||||
return now + timeout;
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
iris_fence_finish(struct pipe_screen *p_screen,
|
||||
struct pipe_context *ctx,
|
||||
struct pipe_fence_handle *fence,
|
||||
|
||||
@@ -394,7 +394,7 @@ iris_format_for_usage(const struct gen_device_info *devinfo,
|
||||
* Returns true if the given format is supported for the given usage
|
||||
* (PIPE_BIND_*) and sample count.
|
||||
*/
|
||||
boolean
|
||||
bool
|
||||
iris_is_format_supported(struct pipe_screen *pscreen,
|
||||
enum pipe_format pformat,
|
||||
enum pipe_texture_target target,
|
||||
|
||||
@@ -753,7 +753,7 @@ iris_destroy_query(struct pipe_context *ctx, struct pipe_query *p_query)
|
||||
}
|
||||
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
iris_begin_query(struct pipe_context *ctx, struct pipe_query *query)
|
||||
{
|
||||
struct iris_context *ice = (void *) ctx;
|
||||
@@ -846,10 +846,10 @@ iris_check_query_no_flush(struct iris_context *ice, struct iris_query *q)
|
||||
}
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
iris_get_query_result(struct pipe_context *ctx,
|
||||
struct pipe_query *query,
|
||||
boolean wait,
|
||||
bool wait,
|
||||
union pipe_query_result *result)
|
||||
{
|
||||
struct iris_context *ice = (void *) ctx;
|
||||
@@ -888,7 +888,7 @@ iris_get_query_result(struct pipe_context *ctx,
|
||||
static void
|
||||
iris_get_query_result_resource(struct pipe_context *ctx,
|
||||
struct pipe_query *query,
|
||||
boolean wait,
|
||||
bool wait,
|
||||
enum pipe_query_value_type result_type,
|
||||
int index,
|
||||
struct pipe_resource *p_res,
|
||||
@@ -975,7 +975,7 @@ iris_get_query_result_resource(struct pipe_context *ctx,
|
||||
}
|
||||
|
||||
static void
|
||||
iris_set_active_query_state(struct pipe_context *ctx, boolean enable)
|
||||
iris_set_active_query_state(struct pipe_context *ctx, bool enable)
|
||||
{
|
||||
struct iris_context *ice = (void *) ctx;
|
||||
|
||||
@@ -1063,7 +1063,7 @@ set_predicate_for_result(struct iris_context *ice,
|
||||
static void
|
||||
iris_render_condition(struct pipe_context *ctx,
|
||||
struct pipe_query *query,
|
||||
boolean condition,
|
||||
bool condition,
|
||||
enum pipe_render_cond_flag mode)
|
||||
{
|
||||
struct iris_context *ice = (void *) ctx;
|
||||
|
||||
@@ -827,7 +827,7 @@ iris_flush_resource(struct pipe_context *ctx, struct pipe_resource *resource)
|
||||
mod ? mod->supports_clear_color : false);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
iris_resource_get_handle(struct pipe_screen *pscreen,
|
||||
struct pipe_context *ctx,
|
||||
struct pipe_resource *resource,
|
||||
|
||||
@@ -88,7 +88,7 @@ struct iris_screen {
|
||||
struct pipe_screen *
|
||||
iris_screen_create(int fd, const struct pipe_screen_config *config);
|
||||
|
||||
boolean
|
||||
bool
|
||||
iris_is_format_supported(struct pipe_screen *pscreen,
|
||||
enum pipe_format format,
|
||||
enum pipe_texture_target target,
|
||||
|
||||
@@ -104,7 +104,7 @@ lima_fence_reference(struct pipe_screen *pscreen,
|
||||
*ptr = fence;
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
lima_fence_finish(struct pipe_screen *pscreen, struct pipe_context *pctx,
|
||||
struct pipe_fence_handle *fence, uint64_t timeout)
|
||||
{
|
||||
|
||||
@@ -54,7 +54,7 @@ lima_destroy_query(struct pipe_context *ctx, struct pipe_query *query)
|
||||
free(query);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
lima_begin_query(struct pipe_context *ctx, struct pipe_query *query)
|
||||
{
|
||||
return true;
|
||||
@@ -66,9 +66,9 @@ lima_end_query(struct pipe_context *ctx, struct pipe_query *query)
|
||||
return true;
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
lima_get_query_result(struct pipe_context *ctx, struct pipe_query *query,
|
||||
boolean wait, union pipe_query_result *vresult)
|
||||
bool wait, union pipe_query_result *vresult)
|
||||
{
|
||||
uint64_t *result = &vresult->u64;
|
||||
|
||||
@@ -78,7 +78,7 @@ lima_get_query_result(struct pipe_context *ctx, struct pipe_query *query,
|
||||
}
|
||||
|
||||
static void
|
||||
lima_set_active_query_state(struct pipe_context *pipe, boolean enable)
|
||||
lima_set_active_query_state(struct pipe_context *pipe, bool enable)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -321,7 +321,7 @@ err_out:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
lima_resource_get_handle(struct pipe_screen *pscreen,
|
||||
struct pipe_context *pctx,
|
||||
struct pipe_resource *pres,
|
||||
@@ -334,13 +334,13 @@ lima_resource_get_handle(struct pipe_screen *pscreen,
|
||||
|
||||
if (handle->type == WINSYS_HANDLE_TYPE_KMS && screen->ro &&
|
||||
renderonly_get_handle(res->scanout, handle))
|
||||
return TRUE;
|
||||
return true;
|
||||
|
||||
if (!lima_bo_export(res->bo, handle))
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
handle->stride = res->levels[0].stride;
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -249,7 +249,7 @@ lima_screen_get_shader_param(struct pipe_screen *pscreen,
|
||||
}
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
lima_screen_is_format_supported(struct pipe_screen *pscreen,
|
||||
enum pipe_format format,
|
||||
enum pipe_texture_target target,
|
||||
@@ -263,7 +263,7 @@ lima_screen_is_format_supported(struct pipe_screen *pscreen,
|
||||
case PIPE_TEXTURE_2D:
|
||||
break;
|
||||
default:
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (MAX2(1, sample_count) != MAX2(1, storage_sample_count))
|
||||
@@ -271,7 +271,7 @@ lima_screen_is_format_supported(struct pipe_screen *pscreen,
|
||||
|
||||
/* be able to support 16, now limit to 4 */
|
||||
if (sample_count > 1 && sample_count != 4)
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
if (usage & PIPE_BIND_RENDER_TARGET) {
|
||||
switch (format) {
|
||||
@@ -284,7 +284,7 @@ lima_screen_is_format_supported(struct pipe_screen *pscreen,
|
||||
case PIPE_FORMAT_Z24X8_UNORM:
|
||||
break;
|
||||
default:
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -295,7 +295,7 @@ lima_screen_is_format_supported(struct pipe_screen *pscreen,
|
||||
case PIPE_FORMAT_Z24X8_UNORM:
|
||||
break;
|
||||
default:
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -304,7 +304,7 @@ lima_screen_is_format_supported(struct pipe_screen *pscreen,
|
||||
case PIPE_FORMAT_R32G32B32_FLOAT:
|
||||
break;
|
||||
default:
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -315,7 +315,7 @@ lima_screen_is_format_supported(struct pipe_screen *pscreen,
|
||||
case PIPE_FORMAT_I32_UINT:
|
||||
break;
|
||||
default:
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -332,11 +332,11 @@ lima_screen_is_format_supported(struct pipe_screen *pscreen,
|
||||
case PIPE_FORMAT_Z24X8_UNORM:
|
||||
break;
|
||||
default:
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
static const void *
|
||||
|
||||
@@ -414,7 +414,7 @@ lima_set_sampler_views(struct pipe_context *pctx,
|
||||
ctx->dirty |= LIMA_CONTEXT_DIRTY_TEXTURES;
|
||||
}
|
||||
|
||||
UNUSED static boolean
|
||||
UNUSED static bool
|
||||
lima_set_damage_region(struct pipe_context *pctx, unsigned num_rects, int *rects)
|
||||
{
|
||||
struct lima_context *ctx = lima_context(pctx);
|
||||
|
||||
@@ -121,7 +121,7 @@ do_flush( struct pipe_context *pipe,
|
||||
static void
|
||||
llvmpipe_render_condition(struct pipe_context *pipe,
|
||||
struct pipe_query *query,
|
||||
boolean condition,
|
||||
bool condition,
|
||||
enum pipe_render_cond_flag mode)
|
||||
{
|
||||
struct llvmpipe_context *llvmpipe = llvmpipe_context( pipe );
|
||||
|
||||
@@ -89,10 +89,10 @@ llvmpipe_destroy_query(struct pipe_context *pipe, struct pipe_query *q)
|
||||
}
|
||||
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
llvmpipe_get_query_result(struct pipe_context *pipe,
|
||||
struct pipe_query *q,
|
||||
boolean wait,
|
||||
bool wait,
|
||||
union pipe_query_result *vresult)
|
||||
{
|
||||
struct llvmpipe_screen *screen = llvmpipe_screen(pipe->screen);
|
||||
@@ -108,7 +108,7 @@ llvmpipe_get_query_result(struct pipe_context *pipe,
|
||||
llvmpipe_flush(pipe, NULL, __FUNCTION__);
|
||||
|
||||
if (!wait)
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
lp_fence_wait(pq->fence);
|
||||
}
|
||||
@@ -143,11 +143,11 @@ llvmpipe_get_query_result(struct pipe_context *pipe,
|
||||
(struct pipe_query_data_timestamp_disjoint *)vresult;
|
||||
/* os_get_time_nano return nanoseconds */
|
||||
td->frequency = UINT64_C(1000000000);
|
||||
td->disjoint = FALSE;
|
||||
td->disjoint = false;
|
||||
}
|
||||
break;
|
||||
case PIPE_QUERY_GPU_FINISHED:
|
||||
vresult->b = TRUE;
|
||||
vresult->b = true;
|
||||
break;
|
||||
case PIPE_QUERY_PRIMITIVES_GENERATED:
|
||||
*result = pq->num_primitives_generated;
|
||||
@@ -182,11 +182,11 @@ llvmpipe_get_query_result(struct pipe_context *pipe,
|
||||
break;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
llvmpipe_begin_query(struct pipe_context *pipe, struct pipe_query *q)
|
||||
{
|
||||
struct llvmpipe_context *llvmpipe = llvmpipe_context( pipe );
|
||||
@@ -329,7 +329,7 @@ llvmpipe_check_render_cond(struct llvmpipe_context *lp)
|
||||
}
|
||||
|
||||
static void
|
||||
llvmpipe_set_active_query_state(struct pipe_context *pipe, boolean enable)
|
||||
llvmpipe_set_active_query_state(struct pipe_context *pipe, bool enable)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -463,7 +463,7 @@ llvmpipe_get_paramf(struct pipe_screen *screen, enum pipe_capf param)
|
||||
* \param format the format to test
|
||||
* \param type one of PIPE_TEXTURE, PIPE_SURFACE
|
||||
*/
|
||||
static boolean
|
||||
static bool
|
||||
llvmpipe_is_format_supported( struct pipe_screen *_screen,
|
||||
enum pipe_format format,
|
||||
enum pipe_texture_target target,
|
||||
@@ -477,7 +477,7 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
|
||||
|
||||
format_desc = util_format_description(format);
|
||||
if (!format_desc)
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
assert(target == PIPE_BUFFER ||
|
||||
target == PIPE_TEXTURE_1D ||
|
||||
@@ -490,7 +490,7 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
|
||||
target == PIPE_TEXTURE_CUBE_ARRAY);
|
||||
|
||||
if (sample_count > 1)
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
if (MAX2(1, sample_count) != MAX2(1, storage_sample_count))
|
||||
return false;
|
||||
@@ -499,24 +499,24 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
|
||||
if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) {
|
||||
/* this is a lie actually other formats COULD exist where we would fail */
|
||||
if (format_desc->nr_channels < 3)
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
else if (format_desc->colorspace != UTIL_FORMAT_COLORSPACE_RGB)
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
if (format_desc->layout != UTIL_FORMAT_LAYOUT_PLAIN &&
|
||||
format != PIPE_FORMAT_R11G11B10_FLOAT)
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
assert(format_desc->block.width == 1);
|
||||
assert(format_desc->block.height == 1);
|
||||
|
||||
if (format_desc->is_mixed)
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
if (!format_desc->is_array && !format_desc->is_bitmask &&
|
||||
format != PIPE_FORMAT_R11G11B10_FLOAT)
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
if ((bind & (PIPE_BIND_RENDER_TARGET | PIPE_BIND_SAMPLER_VIEW)) &&
|
||||
@@ -530,44 +530,44 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
|
||||
if (format_desc->is_array &&
|
||||
format_desc->nr_channels == 3 &&
|
||||
format_desc->block.bits != 96) {
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (bind & PIPE_BIND_DISPLAY_TARGET) {
|
||||
if(!winsys->is_displaytarget_format_supported(winsys, bind, format))
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (bind & PIPE_BIND_DEPTH_STENCIL) {
|
||||
if (format_desc->layout != UTIL_FORMAT_LAYOUT_PLAIN)
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
if (format_desc->colorspace != UTIL_FORMAT_COLORSPACE_ZS)
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
/* TODO: Support stencil-only formats */
|
||||
if (format_desc->swizzle[0] == PIPE_SWIZZLE_NONE) {
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (format_desc->layout == UTIL_FORMAT_LAYOUT_ASTC ||
|
||||
format_desc->layout == UTIL_FORMAT_LAYOUT_ATC) {
|
||||
/* Software decoding is not hooked up. */
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (format_desc->layout == UTIL_FORMAT_LAYOUT_ETC &&
|
||||
format != PIPE_FORMAT_ETC1_RGB8)
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
/*
|
||||
* Everything can be supported by u_format
|
||||
* (those without fetch_rgba_float might be not but shouldn't hit that)
|
||||
*/
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -629,7 +629,7 @@ llvmpipe_fence_reference(struct pipe_screen *screen,
|
||||
/**
|
||||
* Wait for the fence to finish.
|
||||
*/
|
||||
static boolean
|
||||
static bool
|
||||
llvmpipe_fence_finish(struct pipe_screen *screen,
|
||||
struct pipe_context *ctx,
|
||||
struct pipe_fence_handle *fence_handle,
|
||||
@@ -646,7 +646,7 @@ llvmpipe_fence_finish(struct pipe_screen *screen,
|
||||
|
||||
lp_fence_wait(f);
|
||||
}
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
static uint64_t
|
||||
|
||||
@@ -187,7 +187,7 @@ fail:
|
||||
* Check the size of the texture specified by 'res'.
|
||||
* \return TRUE if OK, FALSE if too large.
|
||||
*/
|
||||
static boolean
|
||||
static bool
|
||||
llvmpipe_can_create_resource(struct pipe_screen *screen,
|
||||
const struct pipe_resource *res)
|
||||
{
|
||||
@@ -486,7 +486,7 @@ no_lpr:
|
||||
}
|
||||
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
llvmpipe_resource_get_handle(struct pipe_screen *screen,
|
||||
struct pipe_context *ctx,
|
||||
struct pipe_resource *pt,
|
||||
@@ -498,7 +498,7 @@ llvmpipe_resource_get_handle(struct pipe_screen *screen,
|
||||
|
||||
assert(lpr->dt);
|
||||
if (!lpr->dt)
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
return winsys->displaytarget_get_handle(winsys, lpr->dt, whandle);
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ nouveau_screen_fence_ref(struct pipe_screen *pscreen,
|
||||
nouveau_fence_ref(nouveau_fence(pfence), (struct nouveau_fence **)ptr);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
nouveau_screen_fence_finish(struct pipe_screen *screen,
|
||||
struct pipe_context *ctx,
|
||||
struct pipe_fence_handle *pfence,
|
||||
|
||||
@@ -492,7 +492,7 @@ nouveau_vp3_screen_get_video_param(struct pipe_screen *pscreen,
|
||||
}
|
||||
}
|
||||
|
||||
boolean
|
||||
bool
|
||||
nouveau_vp3_screen_video_supported(struct pipe_screen *screen,
|
||||
enum pipe_format format,
|
||||
enum pipe_video_profile profile,
|
||||
|
||||
@@ -235,7 +235,7 @@ nouveau_vp3_screen_get_video_param(struct pipe_screen *pscreen,
|
||||
enum pipe_video_entrypoint entrypoint,
|
||||
enum pipe_video_cap param);
|
||||
|
||||
boolean
|
||||
bool
|
||||
nouveau_vp3_screen_video_supported(struct pipe_screen *screen,
|
||||
enum pipe_format format,
|
||||
enum pipe_video_profile profile,
|
||||
|
||||
@@ -46,7 +46,7 @@ layer_offset(struct pipe_resource *pt, unsigned level, unsigned layer)
|
||||
return lvl->offset + (layer * lvl->zslice_size);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
nv30_miptree_get_handle(struct pipe_screen *pscreen,
|
||||
struct pipe_resource *pt,
|
||||
struct winsys_handle *handle)
|
||||
|
||||
@@ -146,7 +146,7 @@ nv30_query_destroy(struct pipe_context *pipe, struct pipe_query *pq)
|
||||
FREE(pq);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
nv30_query_begin(struct pipe_context *pipe, struct pipe_query *pq)
|
||||
{
|
||||
struct nv30_context *nv30 = nv30_context(pipe);
|
||||
@@ -198,9 +198,9 @@ nv30_query_end(struct pipe_context *pipe, struct pipe_query *pq)
|
||||
return true;
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
nv30_query_result(struct pipe_context *pipe, struct pipe_query *pq,
|
||||
boolean wait, union pipe_query_result *result)
|
||||
bool wait, union pipe_query_result *result)
|
||||
{
|
||||
struct nv30_screen *screen = nv30_screen(pipe->screen);
|
||||
struct nv30_query *q = nv30_query(pq);
|
||||
@@ -240,7 +240,7 @@ nv30_query_result(struct pipe_context *pipe, struct pipe_query *pq,
|
||||
static void
|
||||
nv40_query_render_condition(struct pipe_context *pipe,
|
||||
struct pipe_query *pq,
|
||||
boolean condition, enum pipe_render_cond_flag mode)
|
||||
bool condition, enum pipe_render_cond_flag mode)
|
||||
{
|
||||
struct nv30_context *nv30 = nv30_context(pipe);
|
||||
struct nv30_query *q = nv30_query(pq);
|
||||
@@ -267,7 +267,7 @@ nv40_query_render_condition(struct pipe_context *pipe,
|
||||
}
|
||||
|
||||
static void
|
||||
nv30_set_active_query_state(struct pipe_context *pipe, boolean enable)
|
||||
nv30_set_active_query_state(struct pipe_context *pipe, bool enable)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -425,7 +425,7 @@ nv30_screen_get_shader_param(struct pipe_screen *pscreen,
|
||||
}
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
nv30_screen_is_format_supported(struct pipe_screen *pscreen,
|
||||
enum pipe_format format,
|
||||
enum pipe_texture_target target,
|
||||
|
||||
@@ -319,7 +319,7 @@ nv84_screen_get_video_param(struct pipe_screen *pscreen,
|
||||
enum pipe_video_entrypoint entrypoint,
|
||||
enum pipe_video_cap param);
|
||||
|
||||
boolean
|
||||
bool
|
||||
nv84_screen_video_supported(struct pipe_screen *screen,
|
||||
enum pipe_format format,
|
||||
enum pipe_video_profile profile,
|
||||
|
||||
@@ -178,7 +178,7 @@ nv50_miptree_destroy(struct pipe_screen *pscreen, struct pipe_resource *pt)
|
||||
FREE(mt);
|
||||
}
|
||||
|
||||
boolean
|
||||
bool
|
||||
nv50_miptree_get_handle(struct pipe_screen *pscreen,
|
||||
struct pipe_resource *pt,
|
||||
struct winsys_handle *whandle)
|
||||
|
||||
@@ -47,7 +47,7 @@ nv50_destroy_query(struct pipe_context *pipe, struct pipe_query *pq)
|
||||
q->funcs->destroy_query(nv50_context(pipe), q);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
nv50_begin_query(struct pipe_context *pipe, struct pipe_query *pq)
|
||||
{
|
||||
struct nv50_query *q = nv50_query(pq);
|
||||
@@ -62,9 +62,9 @@ nv50_end_query(struct pipe_context *pipe, struct pipe_query *pq)
|
||||
return true;
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
nv50_get_query_result(struct pipe_context *pipe, struct pipe_query *pq,
|
||||
boolean wait, union pipe_query_result *result)
|
||||
bool wait, union pipe_query_result *result)
|
||||
{
|
||||
struct nv50_query *q = nv50_query(pq);
|
||||
return q->funcs->get_query_result(nv50_context(pipe), q, wait, result);
|
||||
@@ -73,7 +73,7 @@ nv50_get_query_result(struct pipe_context *pipe, struct pipe_query *pq,
|
||||
static void
|
||||
nv50_render_condition(struct pipe_context *pipe,
|
||||
struct pipe_query *pq,
|
||||
boolean condition, enum pipe_render_cond_flag mode)
|
||||
bool condition, enum pipe_render_cond_flag mode)
|
||||
{
|
||||
struct nv50_context *nv50 = nv50_context(pipe);
|
||||
struct nouveau_pushbuf *push = nv50->base.pushbuf;
|
||||
@@ -144,7 +144,7 @@ nv50_render_condition(struct pipe_context *pipe,
|
||||
}
|
||||
|
||||
static void
|
||||
nv50_set_active_query_state(struct pipe_context *pipe, boolean enable)
|
||||
nv50_set_active_query_state(struct pipe_context *pipe, bool enable)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -10,10 +10,10 @@ struct nv50_query;
|
||||
|
||||
struct nv50_query_funcs {
|
||||
void (*destroy_query)(struct nv50_context *, struct nv50_query *);
|
||||
boolean (*begin_query)(struct nv50_context *, struct nv50_query *);
|
||||
bool (*begin_query)(struct nv50_context *, struct nv50_query *);
|
||||
void (*end_query)(struct nv50_context *, struct nv50_query *);
|
||||
boolean (*get_query_result)(struct nv50_context *, struct nv50_query *,
|
||||
boolean, union pipe_query_result *);
|
||||
bool (*get_query_result)(struct nv50_context *, struct nv50_query *,
|
||||
bool, union pipe_query_result *);
|
||||
};
|
||||
|
||||
struct nv50_query {
|
||||
|
||||
@@ -119,7 +119,7 @@ nv50_hw_destroy_query(struct nv50_context *nv50, struct nv50_query *q)
|
||||
FREE(hq);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
nv50_hw_begin_query(struct nv50_context *nv50, struct nv50_query *q)
|
||||
{
|
||||
struct nouveau_pushbuf *push = nv50->base.pushbuf;
|
||||
@@ -264,9 +264,9 @@ nv50_hw_end_query(struct nv50_context *nv50, struct nv50_query *q)
|
||||
nouveau_fence_ref(nv50->screen->base.fence.current, &hq->fence);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
nv50_hw_get_query_result(struct nv50_context *nv50, struct nv50_query *q,
|
||||
boolean wait, union pipe_query_result *result)
|
||||
bool wait, union pipe_query_result *result)
|
||||
{
|
||||
struct nv50_hw_query *hq = nv50_hw_query(q);
|
||||
uint64_t *res64 = (uint64_t *)result;
|
||||
|
||||
@@ -17,10 +17,10 @@ struct nv50_hw_query;
|
||||
|
||||
struct nv50_hw_query_funcs {
|
||||
void (*destroy_query)(struct nv50_context *, struct nv50_hw_query *);
|
||||
boolean (*begin_query)(struct nv50_context *, struct nv50_hw_query *);
|
||||
bool (*begin_query)(struct nv50_context *, struct nv50_hw_query *);
|
||||
void (*end_query)(struct nv50_context *, struct nv50_hw_query *);
|
||||
boolean (*get_query_result)(struct nv50_context *, struct nv50_hw_query *,
|
||||
boolean, union pipe_query_result *);
|
||||
bool (*get_query_result)(struct nv50_context *, struct nv50_hw_query *,
|
||||
bool, union pipe_query_result *);
|
||||
};
|
||||
|
||||
struct nv50_hw_query {
|
||||
|
||||
@@ -76,11 +76,11 @@ nv50_hw_metric_destroy_query(struct nv50_context *nv50,
|
||||
FREE(hmq);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
nv50_hw_metric_begin_query(struct nv50_context *nv50, struct nv50_hw_query *hq)
|
||||
{
|
||||
struct nv50_hw_metric_query *hmq = nv50_hw_metric_query(hq);
|
||||
boolean ret = false;
|
||||
bool ret = false;
|
||||
unsigned i;
|
||||
|
||||
for (i = 0; i < hmq->num_queries; i++) {
|
||||
@@ -118,15 +118,15 @@ sm11_hw_metric_calc_result(struct nv50_hw_query *hq, uint64_t res64[8])
|
||||
return 0;
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
nv50_hw_metric_get_query_result(struct nv50_context *nv50,
|
||||
struct nv50_hw_query *hq, boolean wait,
|
||||
struct nv50_hw_query *hq, bool wait,
|
||||
union pipe_query_result *result)
|
||||
{
|
||||
struct nv50_hw_metric_query *hmq = nv50_hw_metric_query(hq);
|
||||
union pipe_query_result results[4] = {};
|
||||
uint64_t res64[4] = {};
|
||||
boolean ret = false;
|
||||
bool ret = false;
|
||||
unsigned i;
|
||||
|
||||
for (i = 0; i < hmq->num_queries; i++) {
|
||||
|
||||
@@ -158,7 +158,7 @@ nv50_hw_sm_destroy_query(struct nv50_context *nv50, struct nv50_hw_query *hq)
|
||||
FREE(hq);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
nv50_hw_sm_begin_query(struct nv50_context *nv50, struct nv50_hw_query *hq)
|
||||
{
|
||||
struct nv50_screen *screen = nv50->screen;
|
||||
@@ -330,9 +330,9 @@ nv50_hw_sm_query_read_data(uint32_t count[32][4],
|
||||
return true;
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
nv50_hw_sm_get_query_result(struct nv50_context *nv50, struct nv50_hw_query *hq,
|
||||
boolean wait, union pipe_query_result *result)
|
||||
bool wait, union pipe_query_result *result)
|
||||
{
|
||||
uint32_t count[32][4];
|
||||
uint64_t value = 0;
|
||||
|
||||
@@ -86,7 +86,7 @@ nv50_miptree_from_handle(struct pipe_screen *pscreen,
|
||||
const struct pipe_resource *template,
|
||||
struct winsys_handle *whandle);
|
||||
|
||||
boolean
|
||||
bool
|
||||
nv50_miptree_get_handle(struct pipe_screen *pscreen,
|
||||
struct pipe_resource *pt,
|
||||
struct winsys_handle *whandle);
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
#define THREADS_IN_WARP 32
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
nv50_screen_is_format_supported(struct pipe_screen *pscreen,
|
||||
enum pipe_format format,
|
||||
enum pipe_texture_target target,
|
||||
|
||||
@@ -1049,7 +1049,7 @@ nv50_set_viewport_states(struct pipe_context *pipe,
|
||||
|
||||
static void
|
||||
nv50_set_window_rectangles(struct pipe_context *pipe,
|
||||
boolean include,
|
||||
bool include,
|
||||
unsigned num_rectangles,
|
||||
const struct pipe_scissor_state *rectangles)
|
||||
{
|
||||
|
||||
@@ -845,7 +845,7 @@ nv84_screen_get_video_param(struct pipe_screen *pscreen,
|
||||
}
|
||||
}
|
||||
|
||||
boolean
|
||||
bool
|
||||
nv84_screen_video_supported(struct pipe_screen *screen,
|
||||
enum pipe_format format,
|
||||
enum pipe_video_profile profile,
|
||||
|
||||
@@ -289,13 +289,13 @@ static uint64_t nvc0_miptree_get_modifier(struct nv50_miptree *mt)
|
||||
return modifier;
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
nvc0_miptree_get_handle(struct pipe_screen *pscreen,
|
||||
struct pipe_resource *pt,
|
||||
struct winsys_handle *whandle)
|
||||
{
|
||||
struct nv50_miptree *mt = nv50_miptree(pt);
|
||||
boolean ret;
|
||||
bool ret;
|
||||
|
||||
ret = nv50_miptree_get_handle(pscreen, pt, whandle);
|
||||
if (!ret)
|
||||
|
||||
@@ -51,7 +51,7 @@ nvc0_destroy_query(struct pipe_context *pipe, struct pipe_query *pq)
|
||||
q->funcs->destroy_query(nvc0_context(pipe), q);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
nvc0_begin_query(struct pipe_context *pipe, struct pipe_query *pq)
|
||||
{
|
||||
struct nvc0_query *q = nvc0_query(pq);
|
||||
@@ -66,9 +66,9 @@ nvc0_end_query(struct pipe_context *pipe, struct pipe_query *pq)
|
||||
return true;
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
nvc0_get_query_result(struct pipe_context *pipe, struct pipe_query *pq,
|
||||
boolean wait, union pipe_query_result *result)
|
||||
bool wait, union pipe_query_result *result)
|
||||
{
|
||||
struct nvc0_query *q = nvc0_query(pq);
|
||||
return q->funcs->get_query_result(nvc0_context(pipe), q, wait, result);
|
||||
@@ -77,7 +77,7 @@ nvc0_get_query_result(struct pipe_context *pipe, struct pipe_query *pq,
|
||||
static void
|
||||
nvc0_get_query_result_resource(struct pipe_context *pipe,
|
||||
struct pipe_query *pq,
|
||||
boolean wait,
|
||||
bool wait,
|
||||
enum pipe_query_value_type result_type,
|
||||
int index,
|
||||
struct pipe_resource *resource,
|
||||
@@ -95,7 +95,7 @@ nvc0_get_query_result_resource(struct pipe_context *pipe,
|
||||
static void
|
||||
nvc0_render_condition(struct pipe_context *pipe,
|
||||
struct pipe_query *pq,
|
||||
boolean condition, enum pipe_render_cond_flag mode)
|
||||
bool condition, enum pipe_render_cond_flag mode)
|
||||
{
|
||||
struct nvc0_context *nvc0 = nvc0_context(pipe);
|
||||
struct nouveau_pushbuf *push = nvc0->base.pushbuf;
|
||||
@@ -262,7 +262,7 @@ nvc0_screen_get_driver_query_group_info(struct pipe_screen *pscreen,
|
||||
}
|
||||
|
||||
static void
|
||||
nvc0_set_active_query_state(struct pipe_context *pipe, boolean enable)
|
||||
nvc0_set_active_query_state(struct pipe_context *pipe, bool enable)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -10,13 +10,13 @@ struct nvc0_query;
|
||||
|
||||
struct nvc0_query_funcs {
|
||||
void (*destroy_query)(struct nvc0_context *, struct nvc0_query *);
|
||||
boolean (*begin_query)(struct nvc0_context *, struct nvc0_query *);
|
||||
bool (*begin_query)(struct nvc0_context *, struct nvc0_query *);
|
||||
void (*end_query)(struct nvc0_context *, struct nvc0_query *);
|
||||
boolean (*get_query_result)(struct nvc0_context *, struct nvc0_query *,
|
||||
boolean, union pipe_query_result *);
|
||||
bool (*get_query_result)(struct nvc0_context *, struct nvc0_query *,
|
||||
bool, union pipe_query_result *);
|
||||
void (*get_query_result_resource)(struct nvc0_context *nvc0,
|
||||
struct nvc0_query *q,
|
||||
boolean wait,
|
||||
bool wait,
|
||||
enum pipe_query_value_type result_type,
|
||||
int index,
|
||||
struct pipe_resource *resource,
|
||||
|
||||
@@ -138,7 +138,7 @@ nvc0_hw_query_write_compute_invocations(struct nvc0_context *nvc0,
|
||||
PUSH_DATA (push, hq->bo->offset + hq->offset + offset);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
nvc0_hw_begin_query(struct nvc0_context *nvc0, struct nvc0_query *q)
|
||||
{
|
||||
struct nouveau_pushbuf *push = nvc0->base.pushbuf;
|
||||
@@ -304,9 +304,9 @@ nvc0_hw_end_query(struct nvc0_context *nvc0, struct nvc0_query *q)
|
||||
nouveau_fence_ref(nvc0->screen->base.fence.current, &hq->fence);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
nvc0_hw_get_query_result(struct nvc0_context *nvc0, struct nvc0_query *q,
|
||||
boolean wait, union pipe_query_result *result)
|
||||
bool wait, union pipe_query_result *result)
|
||||
{
|
||||
struct nvc0_hw_query *hq = nvc0_hw_query(q);
|
||||
uint64_t *res64 = (uint64_t*)result;
|
||||
@@ -387,7 +387,7 @@ nvc0_hw_get_query_result(struct nvc0_context *nvc0, struct nvc0_query *q,
|
||||
static void
|
||||
nvc0_hw_get_query_result_resource(struct nvc0_context *nvc0,
|
||||
struct nvc0_query *q,
|
||||
boolean wait,
|
||||
bool wait,
|
||||
enum pipe_query_value_type result_type,
|
||||
int index,
|
||||
struct pipe_resource *resource,
|
||||
|
||||
@@ -17,10 +17,10 @@ struct nvc0_hw_query;
|
||||
|
||||
struct nvc0_hw_query_funcs {
|
||||
void (*destroy_query)(struct nvc0_context *, struct nvc0_hw_query *);
|
||||
boolean (*begin_query)(struct nvc0_context *, struct nvc0_hw_query *);
|
||||
bool (*begin_query)(struct nvc0_context *, struct nvc0_hw_query *);
|
||||
void (*end_query)(struct nvc0_context *, struct nvc0_hw_query *);
|
||||
boolean (*get_query_result)(struct nvc0_context *, struct nvc0_hw_query *,
|
||||
boolean, union pipe_query_result *);
|
||||
bool (*get_query_result)(struct nvc0_context *, struct nvc0_hw_query *,
|
||||
bool, union pipe_query_result *);
|
||||
};
|
||||
|
||||
struct nvc0_hw_query {
|
||||
@@ -32,7 +32,7 @@ struct nvc0_hw_query {
|
||||
uint32_t base_offset;
|
||||
uint32_t offset; /* base_offset + i * rotate */
|
||||
uint8_t state;
|
||||
boolean is64bit;
|
||||
bool is64bit;
|
||||
uint8_t rotate;
|
||||
struct nouveau_mm_allocation *mm;
|
||||
struct nouveau_fence *fence;
|
||||
|
||||
@@ -470,11 +470,11 @@ nvc0_hw_metric_destroy_query(struct nvc0_context *nvc0,
|
||||
FREE(hmq);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
nvc0_hw_metric_begin_query(struct nvc0_context *nvc0, struct nvc0_hw_query *hq)
|
||||
{
|
||||
struct nvc0_hw_metric_query *hmq = nvc0_hw_metric_query(hq);
|
||||
boolean ret = false;
|
||||
bool ret = false;
|
||||
unsigned i;
|
||||
|
||||
for (i = 0; i < hmq->num_queries; i++) {
|
||||
@@ -659,9 +659,9 @@ sm35_hw_metric_calc_result(struct nvc0_hw_query *hq, uint64_t res64[8])
|
||||
return 0;
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
nvc0_hw_metric_get_query_result(struct nvc0_context *nvc0,
|
||||
struct nvc0_hw_query *hq, boolean wait,
|
||||
struct nvc0_hw_query *hq, bool wait,
|
||||
union pipe_query_result *result)
|
||||
{
|
||||
struct nvc0_hw_metric_query *hmq = nvc0_hw_metric_query(hq);
|
||||
@@ -670,7 +670,7 @@ nvc0_hw_metric_get_query_result(struct nvc0_context *nvc0,
|
||||
union pipe_query_result results[8] = {};
|
||||
uint64_t res64[8] = {};
|
||||
uint64_t value = 0;
|
||||
boolean ret = false;
|
||||
bool ret = false;
|
||||
unsigned i;
|
||||
|
||||
for (i = 0; i < hmq->num_queries; i++) {
|
||||
|
||||
@@ -2303,7 +2303,7 @@ nvc0_hw_sm_destroy_query(struct nvc0_context *nvc0, struct nvc0_hw_query *hq)
|
||||
FREE(hq);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
nve4_hw_sm_begin_query(struct nvc0_context *nvc0, struct nvc0_hw_query *hq)
|
||||
{
|
||||
struct nvc0_screen *screen = nvc0->screen;
|
||||
@@ -2388,7 +2388,7 @@ nve4_hw_sm_begin_query(struct nvc0_context *nvc0, struct nvc0_hw_query *hq)
|
||||
return true;
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
nvc0_hw_sm_begin_query(struct nvc0_context *nvc0, struct nvc0_hw_query *hq)
|
||||
{
|
||||
struct nvc0_screen *screen = nvc0->screen;
|
||||
@@ -2673,9 +2673,9 @@ nve4_hw_sm_query_read_data(uint32_t count[32][8],
|
||||
return true;
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
nvc0_hw_sm_get_query_result(struct nvc0_context *nvc0, struct nvc0_hw_query *hq,
|
||||
boolean wait, union pipe_query_result *result)
|
||||
bool wait, union pipe_query_result *result)
|
||||
{
|
||||
uint32_t count[32][8];
|
||||
uint64_t value = 0;
|
||||
|
||||
@@ -71,7 +71,7 @@ nvc0_sw_destroy_query(struct nvc0_context *nvc0, struct nvc0_query *q)
|
||||
FREE(sq);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
nvc0_sw_begin_query(struct nvc0_context *nvc0, struct nvc0_query *q)
|
||||
{
|
||||
#ifdef NOUVEAU_ENABLE_DRIVER_STATISTICS
|
||||
@@ -95,9 +95,9 @@ nvc0_sw_end_query(struct nvc0_context *nvc0, struct nvc0_query *q)
|
||||
#endif
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
nvc0_sw_get_query_result(struct nvc0_context *nvc0, struct nvc0_query *q,
|
||||
boolean wait, union pipe_query_result *result)
|
||||
bool wait, union pipe_query_result *result)
|
||||
{
|
||||
#ifdef NOUVEAU_ENABLE_DRIVER_STATISTICS
|
||||
struct nvc0_sw_query *sq = nvc0_sw_query(q);
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
#include "nv50/g80_texture.xml.h"
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
nvc0_screen_is_format_supported(struct pipe_screen *pscreen,
|
||||
enum pipe_format format,
|
||||
enum pipe_texture_target target,
|
||||
|
||||
@@ -949,7 +949,7 @@ nvc0_set_viewport_states(struct pipe_context *pipe,
|
||||
|
||||
static void
|
||||
nvc0_set_window_rectangles(struct pipe_context *pipe,
|
||||
boolean include,
|
||||
bool include,
|
||||
unsigned num_rectangles,
|
||||
const struct pipe_scissor_state *rectangles)
|
||||
{
|
||||
|
||||
@@ -2501,7 +2501,7 @@ panfrost_set_polygon_stipple(struct pipe_context *pipe,
|
||||
|
||||
static void
|
||||
panfrost_set_active_query_state(struct pipe_context *pipe,
|
||||
boolean enable)
|
||||
bool enable)
|
||||
{
|
||||
//struct panfrost_context *panfrost = pan_context(pipe);
|
||||
}
|
||||
@@ -2546,7 +2546,7 @@ panfrost_destroy_query(struct pipe_context *pipe, struct pipe_query *q)
|
||||
ralloc_free(q);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
panfrost_begin_query(struct pipe_context *pipe, struct pipe_query *q)
|
||||
{
|
||||
struct panfrost_context *ctx = pan_context(pipe);
|
||||
@@ -2580,10 +2580,10 @@ panfrost_end_query(struct pipe_context *pipe, struct pipe_query *q)
|
||||
return true;
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
panfrost_get_query_result(struct pipe_context *pipe,
|
||||
struct pipe_query *q,
|
||||
boolean wait,
|
||||
bool wait,
|
||||
union pipe_query_result *vresult)
|
||||
{
|
||||
/* STUB */
|
||||
|
||||
@@ -83,7 +83,7 @@ panfrost_resource_from_handle(struct pipe_screen *pscreen,
|
||||
return prsc;
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
panfrost_resource_get_handle(struct pipe_screen *pscreen,
|
||||
struct pipe_context *ctx,
|
||||
struct pipe_resource *pt,
|
||||
@@ -97,10 +97,10 @@ panfrost_resource_get_handle(struct pipe_screen *pscreen,
|
||||
handle->modifier = DRM_FORMAT_MOD_INVALID;
|
||||
|
||||
if (handle->type == WINSYS_HANDLE_TYPE_SHARED) {
|
||||
return FALSE;
|
||||
return false;
|
||||
} else if (handle->type == WINSYS_HANDLE_TYPE_KMS) {
|
||||
if (renderonly_get_handle(scanout, handle))
|
||||
return TRUE;
|
||||
return true;
|
||||
|
||||
handle->handle = rsrc->bo->gem_handle;
|
||||
handle->stride = rsrc->slices[0].stride;
|
||||
@@ -114,25 +114,25 @@ panfrost_resource_get_handle(struct pipe_screen *pscreen,
|
||||
|
||||
int ret = drmIoctl(screen->ro->kms_fd, DRM_IOCTL_PRIME_HANDLE_TO_FD, &args);
|
||||
if (ret == -1)
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
handle->stride = scanout->stride;
|
||||
handle->handle = args.fd;
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
} else {
|
||||
int fd = panfrost_drm_export_bo(screen, rsrc->bo);
|
||||
|
||||
if (fd < 0)
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
handle->handle = fd;
|
||||
handle->stride = rsrc->slices[0].stride;
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -656,7 +656,7 @@ panfrost_resource_get_internal_format(struct pipe_resource *prsrc) {
|
||||
return prsrc->format;
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
panfrost_generate_mipmap(
|
||||
struct pipe_context *pctx,
|
||||
struct pipe_resource *prsrc,
|
||||
|
||||
@@ -359,7 +359,7 @@ panfrost_get_paramf(struct pipe_screen *screen, enum pipe_capf param)
|
||||
* \param format the format to test
|
||||
* \param type one of PIPE_TEXTURE, PIPE_SURFACE
|
||||
*/
|
||||
static boolean
|
||||
static bool
|
||||
panfrost_is_format_supported( struct pipe_screen *screen,
|
||||
enum pipe_format format,
|
||||
enum pipe_texture_target target,
|
||||
@@ -382,17 +382,17 @@ panfrost_is_format_supported( struct pipe_screen *screen,
|
||||
format_desc = util_format_description(format);
|
||||
|
||||
if (!format_desc)
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
if (sample_count > 1)
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
/* Format wishlist */
|
||||
if (format == PIPE_FORMAT_X8Z24_UNORM)
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
if (format == PIPE_FORMAT_A1B5G5R5_UNORM || format == PIPE_FORMAT_X1B5G5R5_UNORM)
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
/* TODO */
|
||||
if (format == PIPE_FORMAT_B5G5R5A1_UNORM)
|
||||
@@ -405,12 +405,12 @@ panfrost_is_format_supported( struct pipe_screen *screen,
|
||||
bool renderable = bind & PIPE_BIND_RENDER_TARGET;
|
||||
|
||||
if (scanout && renderable && !util_format_is_rgba8_variant(format_desc))
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
if (format_desc->layout != UTIL_FORMAT_LAYOUT_PLAIN &&
|
||||
format_desc->layout != UTIL_FORMAT_LAYOUT_OTHER) {
|
||||
/* Compressed formats not yet hooked up. */
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Internally, formats that are depth/stencil renderable are limited.
|
||||
@@ -437,7 +437,7 @@ panfrost_is_format_supported( struct pipe_screen *screen,
|
||||
}
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -473,7 +473,7 @@ panfrost_fence_reference(struct pipe_screen *pscreen,
|
||||
panfrost_drm_fence_reference(pscreen, ptr, fence);
|
||||
}
|
||||
|
||||
static boolean
|
||||
static bool
|
||||
panfrost_fence_finish(struct pipe_screen *pscreen,
|
||||
struct pipe_context *ctx,
|
||||
struct pipe_fence_handle *fence,
|
||||
|
||||
@@ -87,8 +87,8 @@ void r300_resume_query(struct r300_context *r300,
|
||||
r300_mark_atom_dirty(r300, &r300->query_start);
|
||||
}
|
||||
|
||||
static boolean r300_begin_query(struct pipe_context* pipe,
|
||||
struct pipe_query* query)
|
||||
static bool r300_begin_query(struct pipe_context* pipe,
|
||||
struct pipe_query* query)
|
||||
{
|
||||
struct r300_context* r300 = r300_context(pipe);
|
||||
struct r300_query* q = r300_query(query);
|
||||
@@ -138,10 +138,10 @@ static bool r300_end_query(struct pipe_context* pipe,
|
||||
return true;
|
||||
}
|
||||
|
||||
static boolean r300_get_query_result(struct pipe_context* pipe,
|
||||
struct pipe_query* query,
|
||||
boolean wait,
|
||||
union pipe_query_result *vresult)
|
||||
static bool r300_get_query_result(struct pipe_context* pipe,
|
||||
struct pipe_query* query,
|
||||
bool wait,
|
||||
union pipe_query_result *vresult)
|
||||
{
|
||||
struct r300_context* r300 = r300_context(pipe);
|
||||
struct r300_query *q = r300_query(query);
|
||||
@@ -184,12 +184,12 @@ static boolean r300_get_query_result(struct pipe_context* pipe,
|
||||
|
||||
static void r300_render_condition(struct pipe_context *pipe,
|
||||
struct pipe_query *query,
|
||||
boolean condition,
|
||||
bool condition,
|
||||
enum pipe_render_cond_flag mode)
|
||||
{
|
||||
struct r300_context *r300 = r300_context(pipe);
|
||||
union pipe_query_result result;
|
||||
boolean wait;
|
||||
bool wait;
|
||||
|
||||
r300->skip_rendering = FALSE;
|
||||
|
||||
@@ -209,7 +209,7 @@ static void r300_render_condition(struct pipe_context *pipe,
|
||||
}
|
||||
|
||||
static void
|
||||
r300_set_active_query_state(struct pipe_context *pipe, boolean enable)
|
||||
r300_set_active_query_state(struct pipe_context *pipe, bool enable)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -638,12 +638,12 @@ static bool r300_is_blending_supported(struct r300_screen *rscreen,
|
||||
return false;
|
||||
}
|
||||
|
||||
static boolean r300_is_format_supported(struct pipe_screen* screen,
|
||||
enum pipe_format format,
|
||||
enum pipe_texture_target target,
|
||||
unsigned sample_count,
|
||||
unsigned storage_sample_count,
|
||||
unsigned usage)
|
||||
static bool r300_is_format_supported(struct pipe_screen* screen,
|
||||
enum pipe_format format,
|
||||
enum pipe_texture_target target,
|
||||
unsigned sample_count,
|
||||
unsigned storage_sample_count,
|
||||
unsigned usage)
|
||||
{
|
||||
uint32_t retval = 0;
|
||||
boolean is_r500 = r300_screen(screen)->caps.is_r500;
|
||||
@@ -683,7 +683,7 @@ static boolean r300_is_format_supported(struct pipe_screen* screen,
|
||||
if (usage & (PIPE_BIND_SAMPLER_VIEW |
|
||||
PIPE_BIND_DISPLAY_TARGET |
|
||||
PIPE_BIND_SCANOUT)) {
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
desc = util_format_description(format);
|
||||
@@ -695,18 +695,18 @@ static boolean r300_is_format_supported(struct pipe_screen* screen,
|
||||
!util_format_is_rgba1010102_variant(desc) &&
|
||||
format != PIPE_FORMAT_R16G16B16A16_FLOAT &&
|
||||
format != PIPE_FORMAT_R16G16B16X16_FLOAT) {
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
/* Only allow depth/stencil, RGBA8. */
|
||||
if (!util_format_is_depth_or_stencil(format) &&
|
||||
!util_format_is_rgba8_variant(desc)) {
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Check sampler format support. */
|
||||
@@ -795,10 +795,10 @@ static void r300_fence_reference(struct pipe_screen *screen,
|
||||
rws->fence_reference(ptr, fence);
|
||||
}
|
||||
|
||||
static boolean r300_fence_finish(struct pipe_screen *screen,
|
||||
struct pipe_context *ctx,
|
||||
struct pipe_fence_handle *fence,
|
||||
uint64_t timeout)
|
||||
static bool r300_fence_finish(struct pipe_screen *screen,
|
||||
struct pipe_context *ctx,
|
||||
struct pipe_fence_handle *fence,
|
||||
uint64_t timeout)
|
||||
{
|
||||
struct radeon_winsys *rws = r300_screen(screen)->rws;
|
||||
|
||||
|
||||
@@ -1035,17 +1035,17 @@ static void r300_texture_destroy(struct pipe_screen *screen,
|
||||
FREE(tex);
|
||||
}
|
||||
|
||||
boolean r300_resource_get_handle(struct pipe_screen* screen,
|
||||
struct pipe_context *ctx,
|
||||
struct pipe_resource *texture,
|
||||
struct winsys_handle *whandle,
|
||||
unsigned usage)
|
||||
bool r300_resource_get_handle(struct pipe_screen* screen,
|
||||
struct pipe_context *ctx,
|
||||
struct pipe_resource *texture,
|
||||
struct winsys_handle *whandle,
|
||||
unsigned usage)
|
||||
{
|
||||
struct radeon_winsys *rws = r300_screen(screen)->rws;
|
||||
struct r300_resource* tex = (struct r300_resource*)texture;
|
||||
|
||||
if (!tex) {
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
return rws->buffer_get_handle(rws, tex->buf, tex->tex.stride_in_bytes[0],
|
||||
|
||||
@@ -61,11 +61,11 @@ void r300_texture_setup_format_state(struct r300_screen *screen,
|
||||
unsigned height0_override,
|
||||
struct r300_texture_format_state *out);
|
||||
|
||||
boolean r300_resource_get_handle(struct pipe_screen* screen,
|
||||
struct pipe_context *ctx,
|
||||
struct pipe_resource *texture,
|
||||
struct winsys_handle *whandle,
|
||||
unsigned usage);
|
||||
bool r300_resource_get_handle(struct pipe_screen* screen,
|
||||
struct pipe_context *ctx,
|
||||
struct pipe_resource *texture,
|
||||
struct winsys_handle *whandle,
|
||||
unsigned usage);
|
||||
|
||||
struct pipe_resource*
|
||||
r300_texture_from_handle(struct pipe_screen* screen,
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user