mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 15:30:14 +01:00
i915g: Minor cleanups
This commit is contained in:
parent
57fc2ad7a1
commit
50f17a001f
2 changed files with 16 additions and 9 deletions
|
|
@ -316,8 +316,6 @@ struct pipe_context *i915_create_context(struct pipe_screen *screen,
|
||||||
void *priv);
|
void *priv);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* Inline conversion functions. These are better-typed than the
|
* Inline conversion functions. These are better-typed than the
|
||||||
* macros used previously:
|
* macros used previously:
|
||||||
|
|
@ -329,5 +327,4 @@ i915_context( struct pipe_context *pipe )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -202,6 +202,7 @@ i915_emit_hardware_state(struct i915_context *i915 )
|
||||||
OUT_BATCH(i915->current.immediate[I915_IMMEDIATE_S6]);
|
OUT_BATCH(i915->current.immediate[I915_IMMEDIATE_S6]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 01
|
||||||
/* I915_MAX_DYNAMIC dwords, 0 relocs */
|
/* I915_MAX_DYNAMIC dwords, 0 relocs */
|
||||||
if (i915->hardware_dirty & I915_HW_DYNAMIC)
|
if (i915->hardware_dirty & I915_HW_DYNAMIC)
|
||||||
{
|
{
|
||||||
|
|
@ -210,7 +211,9 @@ i915_emit_hardware_state(struct i915_context *i915 )
|
||||||
OUT_BATCH(i915->current.dynamic[i]);
|
OUT_BATCH(i915->current.dynamic[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if 01
|
||||||
/* 8 dwords, 2 relocs */
|
/* 8 dwords, 2 relocs */
|
||||||
if (i915->hardware_dirty & I915_HW_STATIC)
|
if (i915->hardware_dirty & I915_HW_STATIC)
|
||||||
{
|
{
|
||||||
|
|
@ -281,6 +284,7 @@ i915_emit_hardware_state(struct i915_context *i915 )
|
||||||
zformat );
|
zformat );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if 01
|
#if 01
|
||||||
/* texture images */
|
/* texture images */
|
||||||
|
|
@ -337,6 +341,7 @@ i915_emit_hardware_state(struct i915_context *i915 )
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if 01
|
||||||
/* constants */
|
/* constants */
|
||||||
/* 2 + I915_MAX_CONSTANT*4 dwords, 0 relocs */
|
/* 2 + I915_MAX_CONSTANT*4 dwords, 0 relocs */
|
||||||
if (i915->hardware_dirty & I915_HW_CONSTANTS)
|
if (i915->hardware_dirty & I915_HW_CONSTANTS)
|
||||||
|
|
@ -376,7 +381,9 @@ i915_emit_hardware_state(struct i915_context *i915 )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if 01
|
||||||
/* Fragment program */
|
/* Fragment program */
|
||||||
/* i915->current.program_len dwords, 0 relocs */
|
/* i915->current.program_len dwords, 0 relocs */
|
||||||
if (i915->hardware_dirty & I915_HW_PROGRAM)
|
if (i915->hardware_dirty & I915_HW_PROGRAM)
|
||||||
|
|
@ -388,7 +395,9 @@ i915_emit_hardware_state(struct i915_context *i915 )
|
||||||
OUT_BATCH(i915->fs->program[i]);
|
OUT_BATCH(i915->fs->program[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if 01
|
||||||
/* drawing surface size */
|
/* drawing surface size */
|
||||||
/* 6 dwords, 0 relocs */
|
/* 6 dwords, 0 relocs */
|
||||||
{
|
{
|
||||||
|
|
@ -404,6 +413,7 @@ i915_emit_hardware_state(struct i915_context *i915 )
|
||||||
OUT_BATCH(0);
|
OUT_BATCH(0);
|
||||||
OUT_BATCH(0);
|
OUT_BATCH(0);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
I915_DBG(DBG_EMIT, "%s: used %d dwords, %d relocs\n", __FUNCTION__,
|
I915_DBG(DBG_EMIT, "%s: used %d dwords, %d relocs\n", __FUNCTION__,
|
||||||
((uintptr_t)i915->batch->ptr - save_ptr) / 4,
|
((uintptr_t)i915->batch->ptr - save_ptr) / 4,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue