translate: mark functions as PIPE_CDECL
This commit is contained in:
@@ -71,15 +71,15 @@ struct translate {
|
||||
const void *ptr,
|
||||
unsigned stride );
|
||||
|
||||
void (*run_elts)( struct translate *,
|
||||
const unsigned *elts,
|
||||
unsigned count,
|
||||
void *output_buffer);
|
||||
void (PIPE_CDECL *run_elts)( struct translate *,
|
||||
const unsigned *elts,
|
||||
unsigned count,
|
||||
void *output_buffer);
|
||||
|
||||
void (*run)( struct translate *,
|
||||
unsigned start,
|
||||
unsigned count,
|
||||
void *output_buffer);
|
||||
void (PIPE_CDECL *run)( struct translate *,
|
||||
unsigned start,
|
||||
unsigned count,
|
||||
void *output_buffer);
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -541,10 +541,10 @@ static emit_func get_emit_func( enum pipe_format format )
|
||||
/**
|
||||
* Fetch vertex attributes for 'count' vertices.
|
||||
*/
|
||||
static void generic_run_elts( struct translate *translate,
|
||||
const unsigned *elts,
|
||||
unsigned count,
|
||||
void *output_buffer )
|
||||
static void PIPE_CDECL generic_run_elts( struct translate *translate,
|
||||
const unsigned *elts,
|
||||
unsigned count,
|
||||
void *output_buffer )
|
||||
{
|
||||
struct translate_generic *tg = translate_generic(translate);
|
||||
char *vert = output_buffer;
|
||||
@@ -580,10 +580,10 @@ static void generic_run_elts( struct translate *translate,
|
||||
|
||||
|
||||
|
||||
static void generic_run( struct translate *translate,
|
||||
unsigned start,
|
||||
unsigned count,
|
||||
void *output_buffer )
|
||||
static void PIPE_CDECL generic_run( struct translate *translate,
|
||||
unsigned start,
|
||||
unsigned count,
|
||||
void *output_buffer )
|
||||
{
|
||||
struct translate_generic *tg = translate_generic(translate);
|
||||
char *vert = output_buffer;
|
||||
|
||||
@@ -45,22 +45,16 @@
|
||||
#define W 3
|
||||
|
||||
|
||||
#ifdef WIN32
|
||||
#define RTASM __cdecl
|
||||
#else
|
||||
#define RTASM
|
||||
#endif
|
||||
|
||||
typedef void (RTASM *run_func)( struct translate *translate,
|
||||
unsigned start,
|
||||
unsigned count,
|
||||
void *output_buffer );
|
||||
|
||||
typedef void (RTASM *run_elts_func)( struct translate *translate,
|
||||
const unsigned *elts,
|
||||
typedef void (PIPE_CDECL *run_func)( struct translate *translate,
|
||||
unsigned start,
|
||||
unsigned count,
|
||||
void *output_buffer );
|
||||
|
||||
typedef void (PIPE_CDECL *run_elts_func)( struct translate *translate,
|
||||
const unsigned *elts,
|
||||
unsigned count,
|
||||
void *output_buffer );
|
||||
|
||||
|
||||
|
||||
struct translate_sse {
|
||||
|
||||
Reference in New Issue
Block a user