gallium: s/uint/enum pipe_render_cond_flag/ for set_render_condition()
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
This commit is contained in:
@@ -852,7 +852,8 @@ cso_restore_stencil_ref(struct cso_context *ctx)
|
|||||||
|
|
||||||
void cso_set_render_condition(struct cso_context *ctx,
|
void cso_set_render_condition(struct cso_context *ctx,
|
||||||
struct pipe_query *query,
|
struct pipe_query *query,
|
||||||
boolean condition, uint mode)
|
boolean condition,
|
||||||
|
enum pipe_render_cond_flag mode)
|
||||||
{
|
{
|
||||||
struct pipe_context *pipe = ctx->pipe;
|
struct pipe_context *pipe = ctx->pipe;
|
||||||
|
|
||||||
|
|||||||
@@ -150,7 +150,8 @@ void cso_set_stencil_ref(struct cso_context *cso,
|
|||||||
|
|
||||||
void cso_set_render_condition(struct cso_context *cso,
|
void cso_set_render_condition(struct cso_context *cso,
|
||||||
struct pipe_query *query,
|
struct pipe_query *query,
|
||||||
boolean condition, uint mode);
|
boolean condition,
|
||||||
|
enum pipe_render_cond_flag mode);
|
||||||
|
|
||||||
|
|
||||||
#define CSO_BIT_AUX_VERTEX_BUFFER_SLOT 0x1
|
#define CSO_BIT_AUX_VERTEX_BUFFER_SLOT 0x1
|
||||||
|
|||||||
@@ -535,7 +535,7 @@ static inline void
|
|||||||
util_blitter_save_render_condition(struct blitter_context *blitter,
|
util_blitter_save_render_condition(struct blitter_context *blitter,
|
||||||
struct pipe_query *query,
|
struct pipe_query *query,
|
||||||
boolean condition,
|
boolean condition,
|
||||||
uint mode)
|
enum pipe_render_cond_flag mode)
|
||||||
{
|
{
|
||||||
blitter->saved_render_cond_query = query;
|
blitter->saved_render_cond_query = query;
|
||||||
blitter->saved_render_cond_mode = mode;
|
blitter->saved_render_cond_mode = mode;
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ dd_context_set_active_query_state(struct pipe_context *_pipe, boolean enable)
|
|||||||
static void
|
static void
|
||||||
dd_context_render_condition(struct pipe_context *_pipe,
|
dd_context_render_condition(struct pipe_context *_pipe,
|
||||||
struct pipe_query *query, boolean condition,
|
struct pipe_query *query, boolean condition,
|
||||||
uint mode)
|
enum pipe_render_cond_flag mode)
|
||||||
{
|
{
|
||||||
struct dd_context *dctx = dd_context(_pipe);
|
struct dd_context *dctx = dd_context(_pipe);
|
||||||
struct pipe_context *pipe = dctx->pipe;
|
struct pipe_context *pipe = dctx->pipe;
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ fd_get_query_result(struct pipe_context *pctx, struct pipe_query *pq,
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
fd_render_condition(struct pipe_context *pctx, struct pipe_query *pq,
|
fd_render_condition(struct pipe_context *pctx, struct pipe_query *pq,
|
||||||
boolean condition, uint mode)
|
boolean condition, enum pipe_render_cond_flag mode)
|
||||||
{
|
{
|
||||||
struct fd_context *ctx = fd_context(pctx);
|
struct fd_context *ctx = fd_context(pctx);
|
||||||
ctx->cond_query = pq;
|
ctx->cond_query = pq;
|
||||||
|
|||||||
@@ -238,7 +238,7 @@ nv30_query_result(struct pipe_context *pipe, struct pipe_query *pq,
|
|||||||
static void
|
static void
|
||||||
nv40_query_render_condition(struct pipe_context *pipe,
|
nv40_query_render_condition(struct pipe_context *pipe,
|
||||||
struct pipe_query *pq,
|
struct pipe_query *pq,
|
||||||
boolean condition, uint mode)
|
boolean condition, enum pipe_render_cond_flag mode)
|
||||||
{
|
{
|
||||||
struct nv30_context *nv30 = nv30_context(pipe);
|
struct nv30_context *nv30 = nv30_context(pipe);
|
||||||
struct nv30_query *q = nv30_query(pq);
|
struct nv30_query *q = nv30_query(pq);
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ nv50_get_query_result(struct pipe_context *pipe, struct pipe_query *pq,
|
|||||||
static void
|
static void
|
||||||
nv50_render_condition(struct pipe_context *pipe,
|
nv50_render_condition(struct pipe_context *pipe,
|
||||||
struct pipe_query *pq,
|
struct pipe_query *pq,
|
||||||
boolean condition, uint mode)
|
boolean condition, enum pipe_render_cond_flag mode)
|
||||||
{
|
{
|
||||||
struct nv50_context *nv50 = nv50_context(pipe);
|
struct nv50_context *nv50 = nv50_context(pipe);
|
||||||
struct nouveau_pushbuf *push = nv50->base.pushbuf;
|
struct nouveau_pushbuf *push = nv50->base.pushbuf;
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ nvc0_get_query_result_resource(struct pipe_context *pipe,
|
|||||||
static void
|
static void
|
||||||
nvc0_render_condition(struct pipe_context *pipe,
|
nvc0_render_condition(struct pipe_context *pipe,
|
||||||
struct pipe_query *pq,
|
struct pipe_query *pq,
|
||||||
boolean condition, uint mode)
|
boolean condition, enum pipe_render_cond_flag mode)
|
||||||
{
|
{
|
||||||
struct nvc0_context *nvc0 = nvc0_context(pipe);
|
struct nvc0_context *nvc0 = nvc0_context(pipe);
|
||||||
struct nouveau_pushbuf *push = nvc0->base.pushbuf;
|
struct nouveau_pushbuf *push = nvc0->base.pushbuf;
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ static boolean r300_get_query_result(struct pipe_context* pipe,
|
|||||||
static void r300_render_condition(struct pipe_context *pipe,
|
static void r300_render_condition(struct pipe_context *pipe,
|
||||||
struct pipe_query *query,
|
struct pipe_query *query,
|
||||||
boolean condition,
|
boolean condition,
|
||||||
uint mode)
|
enum pipe_render_cond_flag mode)
|
||||||
{
|
{
|
||||||
struct r300_context *r300 = r300_context(pipe);
|
struct r300_context *r300 = r300_context(pipe);
|
||||||
union pipe_query_result result;
|
union pipe_query_result result;
|
||||||
|
|||||||
@@ -1583,7 +1583,7 @@ static void r600_query_hw_get_result_resource(struct r600_common_context *rctx,
|
|||||||
static void r600_render_condition(struct pipe_context *ctx,
|
static void r600_render_condition(struct pipe_context *ctx,
|
||||||
struct pipe_query *query,
|
struct pipe_query *query,
|
||||||
boolean condition,
|
boolean condition,
|
||||||
uint mode)
|
enum pipe_render_cond_flag mode)
|
||||||
{
|
{
|
||||||
struct r600_common_context *rctx = (struct r600_common_context *)ctx;
|
struct r600_common_context *rctx = (struct r600_common_context *)ctx;
|
||||||
struct r600_query_hw *rquery = (struct r600_query_hw *)query;
|
struct r600_query_hw *rquery = (struct r600_query_hw *)query;
|
||||||
|
|||||||
@@ -1193,7 +1193,7 @@ svga_get_query_result(struct pipe_context *pipe,
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
svga_render_condition(struct pipe_context *pipe, struct pipe_query *q,
|
svga_render_condition(struct pipe_context *pipe, struct pipe_query *q,
|
||||||
boolean condition, uint mode)
|
boolean condition, enum pipe_render_cond_flag mode)
|
||||||
{
|
{
|
||||||
struct svga_context *svga = svga_context(pipe);
|
struct svga_context *svga = svga_context(pipe);
|
||||||
struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws;
|
struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws;
|
||||||
|
|||||||
@@ -394,7 +394,7 @@ static void
|
|||||||
swr_render_condition(struct pipe_context *pipe,
|
swr_render_condition(struct pipe_context *pipe,
|
||||||
struct pipe_query *query,
|
struct pipe_query *query,
|
||||||
boolean condition,
|
boolean condition,
|
||||||
uint mode)
|
enum pipe_render_cond_flag mode)
|
||||||
{
|
{
|
||||||
struct swr_context *ctx = swr_context(pipe);
|
struct swr_context *ctx = swr_context(pipe);
|
||||||
|
|
||||||
|
|||||||
@@ -1580,7 +1580,7 @@ static void
|
|||||||
trace_context_render_condition(struct pipe_context *_context,
|
trace_context_render_condition(struct pipe_context *_context,
|
||||||
struct pipe_query *query,
|
struct pipe_query *query,
|
||||||
boolean condition,
|
boolean condition,
|
||||||
uint mode)
|
enum pipe_render_cond_flag mode)
|
||||||
{
|
{
|
||||||
struct trace_context *tr_context = trace_context(_context);
|
struct trace_context *tr_context = trace_context(_context);
|
||||||
struct pipe_context *context = tr_context->pipe;
|
struct pipe_context *context = tr_context->pipe;
|
||||||
|
|||||||
@@ -821,7 +821,7 @@ int virgl_encoder_get_query_result(struct virgl_context *ctx,
|
|||||||
|
|
||||||
int virgl_encoder_render_condition(struct virgl_context *ctx,
|
int virgl_encoder_render_condition(struct virgl_context *ctx,
|
||||||
uint32_t handle, boolean condition,
|
uint32_t handle, boolean condition,
|
||||||
uint mode)
|
enum pipe_render_cond_flag mode)
|
||||||
{
|
{
|
||||||
virgl_encoder_write_cmd_dword(ctx, VIRGL_CMD0(VIRGL_CCMD_SET_RENDER_CONDITION, 0, VIRGL_RENDER_CONDITION_SIZE));
|
virgl_encoder_write_cmd_dword(ctx, VIRGL_CMD0(VIRGL_CCMD_SET_RENDER_CONDITION, 0, VIRGL_RENDER_CONDITION_SIZE));
|
||||||
virgl_encoder_write_dword(ctx->cbuf, handle);
|
virgl_encoder_write_dword(ctx->cbuf, handle);
|
||||||
|
|||||||
@@ -236,7 +236,7 @@ int virgl_encoder_get_query_result(struct virgl_context *ctx,
|
|||||||
|
|
||||||
int virgl_encoder_render_condition(struct virgl_context *ctx,
|
int virgl_encoder_render_condition(struct virgl_context *ctx,
|
||||||
uint32_t handle, boolean condition,
|
uint32_t handle, boolean condition,
|
||||||
uint mode);
|
enum pipe_render_cond_flag mode);
|
||||||
|
|
||||||
int virgl_encoder_set_sub_ctx(struct virgl_context *ctx, uint32_t sub_ctx_id);
|
int virgl_encoder_set_sub_ctx(struct virgl_context *ctx, uint32_t sub_ctx_id);
|
||||||
int virgl_encoder_create_sub_ctx(struct virgl_context *ctx, uint32_t sub_ctx_id);
|
int virgl_encoder_create_sub_ctx(struct virgl_context *ctx, uint32_t sub_ctx_id);
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ static inline struct virgl_query *virgl_query(struct pipe_query *q)
|
|||||||
static void virgl_render_condition(struct pipe_context *ctx,
|
static void virgl_render_condition(struct pipe_context *ctx,
|
||||||
struct pipe_query *q,
|
struct pipe_query *q,
|
||||||
boolean condition,
|
boolean condition,
|
||||||
uint mode)
|
enum pipe_render_cond_flag mode)
|
||||||
{
|
{
|
||||||
struct virgl_context *vctx = virgl_context(ctx);
|
struct virgl_context *vctx = virgl_context(ctx);
|
||||||
struct virgl_query *query = virgl_query(q);
|
struct virgl_query *query = virgl_query(q);
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ struct pipe_context {
|
|||||||
void (*render_condition)( struct pipe_context *pipe,
|
void (*render_condition)( struct pipe_context *pipe,
|
||||||
struct pipe_query *query,
|
struct pipe_query *query,
|
||||||
boolean condition,
|
boolean condition,
|
||||||
uint mode );
|
enum pipe_render_cond_flag mode );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Query objects
|
* Query objects
|
||||||
|
|||||||
Reference in New Issue
Block a user