i965/fs: Make no16 non-variadic
We never used the fact that it was variadic anyway. Reviewed-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
1bc3b62d4a
commit
f45bf97f30
|
@ -703,26 +703,20 @@ fs_visitor::fail(const char *format, ...)
|
||||||
* During a SIMD16 compile (if one happens anyway), this just calls fail().
|
* During a SIMD16 compile (if one happens anyway), this just calls fail().
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
fs_visitor::no16(const char *format, ...)
|
fs_visitor::no16(const char *msg)
|
||||||
{
|
{
|
||||||
va_list va;
|
|
||||||
|
|
||||||
va_start(va, format);
|
|
||||||
|
|
||||||
if (dispatch_width == 16) {
|
if (dispatch_width == 16) {
|
||||||
vfail(format, va);
|
fail("%s", msg);
|
||||||
} else {
|
} else {
|
||||||
simd16_unsupported = true;
|
simd16_unsupported = true;
|
||||||
|
|
||||||
if (brw->perf_debug) {
|
if (brw->perf_debug) {
|
||||||
if (no16_msg)
|
if (no16_msg)
|
||||||
ralloc_vasprintf_append(&no16_msg, format, va);
|
ralloc_strcat(&no16_msg, msg);
|
||||||
else
|
else
|
||||||
no16_msg = ralloc_vasprintf(mem_ctx, format, va);
|
no16_msg = ralloc_strdup(mem_ctx, msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
va_end(va);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -157,7 +157,7 @@ public:
|
||||||
fs_inst *inst);
|
fs_inst *inst);
|
||||||
void vfail(const char *msg, va_list args);
|
void vfail(const char *msg, va_list args);
|
||||||
void fail(const char *msg, ...);
|
void fail(const char *msg, ...);
|
||||||
void no16(const char *msg, ...);
|
void no16(const char *msg);
|
||||||
void lower_uniform_pull_constant_loads();
|
void lower_uniform_pull_constant_loads();
|
||||||
bool lower_load_payload();
|
bool lower_load_payload();
|
||||||
bool lower_integer_multiplication();
|
bool lower_integer_multiplication();
|
||||||
|
|
Loading…
Reference in New Issue