mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 15:30:14 +01:00
radeon / r200: Remove unused 'dostate' parameter
This parameter hasn't been used since January 2010 (commit 29e02c7).
Fixes the following warning in both radeon and r200:
radeon_common.c: In function 'r200_rcommonBeginBatch':
radeon_common.c:762:14: warning: unused parameter 'dostate' [-Wunused-parameter]
Note that now BEGIN_BATCH and BEGIN_PATCH_NO_AUTOSTATE are identical.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Cc: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
5b4c12972c
commit
2d5fd20690
2 changed files with 2 additions and 4 deletions
|
|
@ -9,7 +9,6 @@ void rcommonDestroyCmdBuf(radeonContextPtr rmesa);
|
||||||
|
|
||||||
void rcommonBeginBatch(radeonContextPtr rmesa,
|
void rcommonBeginBatch(radeonContextPtr rmesa,
|
||||||
int n,
|
int n,
|
||||||
int dostate,
|
|
||||||
const char *file,
|
const char *file,
|
||||||
const char *function,
|
const char *function,
|
||||||
int line);
|
int line);
|
||||||
|
|
@ -32,12 +31,12 @@ void rcommonBeginBatch(radeonContextPtr rmesa,
|
||||||
* Prepare writing n dwords to the command buffer,
|
* Prepare writing n dwords to the command buffer,
|
||||||
* including producing any necessary state emits on buffer wraparound.
|
* including producing any necessary state emits on buffer wraparound.
|
||||||
*/
|
*/
|
||||||
#define BEGIN_BATCH(n) rcommonBeginBatch(b_l_rmesa, n, 1, __FILE__, __FUNCTION__, __LINE__)
|
#define BEGIN_BATCH(n) rcommonBeginBatch(b_l_rmesa, n, __FILE__, __FUNCTION__, __LINE__)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Same as BEGIN_BATCH, but do not cause automatic state emits.
|
* Same as BEGIN_BATCH, but do not cause automatic state emits.
|
||||||
*/
|
*/
|
||||||
#define BEGIN_BATCH_NO_AUTOSTATE(n) rcommonBeginBatch(b_l_rmesa, n, 0, __FILE__, __FUNCTION__, __LINE__)
|
#define BEGIN_BATCH_NO_AUTOSTATE(n) rcommonBeginBatch(b_l_rmesa, n, __FILE__, __FUNCTION__, __LINE__)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Write one dword to the command buffer.
|
* Write one dword to the command buffer.
|
||||||
|
|
|
||||||
|
|
@ -759,7 +759,6 @@ void rcommonDestroyCmdBuf(radeonContextPtr rmesa)
|
||||||
}
|
}
|
||||||
|
|
||||||
void rcommonBeginBatch(radeonContextPtr rmesa, int n,
|
void rcommonBeginBatch(radeonContextPtr rmesa, int n,
|
||||||
int dostate,
|
|
||||||
const char *file,
|
const char *file,
|
||||||
const char *function,
|
const char *function,
|
||||||
int line)
|
int line)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue