diff options
author | Kenneth Graunke <[email protected]> | 2018-05-09 16:20:50 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2018-05-09 16:20:50 -0700 |
commit | a83face48ae5ce762d8c48a7485dc75b45dccf58 (patch) | |
tree | 73e46a2e5b0fcd3dfd2a3639759ce40eab93b9b0 /src/mesa/drivers/dri/i965/brw_queryobj.c | |
parent | 1755654d9f533240dc19954b0dbccaf74e645265 (diff) |
i965: Shut up unused variable warnings.
These are only used in assertions.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_queryobj.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_queryobj.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_queryobj.c b/src/mesa/drivers/dri/i965/brw_queryobj.c index da3df6b4bd5..0015a4ee9d6 100644 --- a/src/mesa/drivers/dri/i965/brw_queryobj.c +++ b/src/mesa/drivers/dri/i965/brw_queryobj.c @@ -134,7 +134,7 @@ brw_queryobj_get_results(struct gl_context *ctx, struct brw_query_object *query) { struct brw_context *brw = brw_context(ctx); - const struct gen_device_info *devinfo = &brw->screen->devinfo; + UNUSED const struct gen_device_info *devinfo = &brw->screen->devinfo; int i; uint64_t *results; @@ -261,7 +261,7 @@ brw_begin_query(struct gl_context *ctx, struct gl_query_object *q) { struct brw_context *brw = brw_context(ctx); struct brw_query_object *query = (struct brw_query_object *)q; - const struct gen_device_info *devinfo = &brw->screen->devinfo; + UNUSED const struct gen_device_info *devinfo = &brw->screen->devinfo; assert(devinfo->gen < 6); @@ -333,7 +333,7 @@ brw_end_query(struct gl_context *ctx, struct gl_query_object *q) { struct brw_context *brw = brw_context(ctx); struct brw_query_object *query = (struct brw_query_object *)q; - const struct gen_device_info *devinfo = &brw->screen->devinfo; + UNUSED const struct gen_device_info *devinfo = &brw->screen->devinfo; assert(devinfo->gen < 6); @@ -387,7 +387,8 @@ brw_end_query(struct gl_context *ctx, struct gl_query_object *q) static void brw_wait_query(struct gl_context *ctx, struct gl_query_object *q) { struct brw_query_object *query = (struct brw_query_object *)q; - const struct gen_device_info *devinfo = &brw_context(ctx)->screen->devinfo; + UNUSED const struct gen_device_info *devinfo = + &brw_context(ctx)->screen->devinfo; assert(devinfo->gen < 6); @@ -405,7 +406,7 @@ static void brw_check_query(struct gl_context *ctx, struct gl_query_object *q) { struct brw_context *brw = brw_context(ctx); struct brw_query_object *query = (struct brw_query_object *)q; - const struct gen_device_info *devinfo = &brw->screen->devinfo; + UNUSED const struct gen_device_info *devinfo = &brw->screen->devinfo; assert(devinfo->gen < 6); @@ -435,7 +436,7 @@ static void ensure_bo_has_space(struct gl_context *ctx, struct brw_query_object *query) { struct brw_context *brw = brw_context(ctx); - const struct gen_device_info *devinfo = &brw->screen->devinfo; + UNUSED const struct gen_device_info *devinfo = &brw->screen->devinfo; assert(devinfo->gen < 6); |