mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-01-10 09:20:16 +01:00
intel: resolve shadowing warnings
v2: keep the bo_gem declaration in exec2() within the loop (Chris) Cc: intel-gfx@lists.freedesktop.org Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
99722bfec6
commit
cf7e32bdf9
3 changed files with 6 additions and 10 deletions
|
|
@ -1460,7 +1460,7 @@ restart:
|
|||
assert(ret == 0);
|
||||
|
||||
if (bufmgr_fake->exec != NULL) {
|
||||
int ret = bufmgr_fake->exec(bo, used, bufmgr_fake->exec_priv);
|
||||
ret = bufmgr_fake->exec(bo, used, bufmgr_fake->exec_priv);
|
||||
if (ret != 0) {
|
||||
pthread_mutex_unlock(&bufmgr_fake->lock);
|
||||
return ret;
|
||||
|
|
|
|||
|
|
@ -2165,8 +2165,7 @@ drm_intel_gem_bo_exec(drm_intel_bo *bo, int used,
|
|||
drm_intel_gem_dump_validation_list(bufmgr_gem);
|
||||
|
||||
for (i = 0; i < bufmgr_gem->exec_count; i++) {
|
||||
drm_intel_bo *bo = bufmgr_gem->exec_bos[i];
|
||||
drm_intel_bo_gem *bo_gem = (drm_intel_bo_gem *) bo;
|
||||
bo_gem = (drm_intel_bo_gem *) bufmgr_gem->exec_bos[i];
|
||||
|
||||
bo_gem->idle = false;
|
||||
|
||||
|
|
@ -2260,8 +2259,8 @@ skip_execution:
|
|||
drm_intel_gem_dump_validation_list(bufmgr_gem);
|
||||
|
||||
for (i = 0; i < bufmgr_gem->exec_count; i++) {
|
||||
drm_intel_bo *bo = bufmgr_gem->exec_bos[i];
|
||||
drm_intel_bo_gem *bo_gem = (drm_intel_bo_gem *)bo;
|
||||
drm_intel_bo_gem *bo_gem =
|
||||
(drm_intel_bo_gem *) bufmgr_gem->exec_bos[i];
|
||||
|
||||
bo_gem->idle = false;
|
||||
|
||||
|
|
|
|||
|
|
@ -3630,7 +3630,6 @@ decode_3d_965(struct drm_intel_decode *ctx)
|
|||
|
||||
case 0x7a00:
|
||||
if (IS_GEN6(devid) || IS_GEN7(devid)) {
|
||||
unsigned int i;
|
||||
if (len != 4 && len != 5)
|
||||
fprintf(out, "Bad count in PIPE_CONTROL\n");
|
||||
|
||||
|
|
@ -3732,8 +3731,6 @@ decode_3d_965(struct drm_intel_decode *ctx)
|
|||
if (opcode_3d->func) {
|
||||
return opcode_3d->func(ctx);
|
||||
} else {
|
||||
unsigned int i;
|
||||
|
||||
instr_out(ctx, 0, "%s\n", opcode_3d->name);
|
||||
|
||||
for (i = 1; i < len; i++) {
|
||||
|
|
@ -3883,9 +3880,9 @@ drm_intel_decode_set_head_tail(struct drm_intel_decode *ctx,
|
|||
|
||||
void
|
||||
drm_intel_decode_set_output_file(struct drm_intel_decode *ctx,
|
||||
FILE *out)
|
||||
FILE *output)
|
||||
{
|
||||
ctx->out = out;
|
||||
ctx->out = output;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue