Removing additional varargs trampoline in shader translator.

This commit is contained in:
Ben Vanik 2015-06-03 22:34:58 -07:00
parent a9e2ba16fb
commit b6728ce23e
3 changed files with 2 additions and 7 deletions

View File

@ -35,7 +35,6 @@ class StringBuffer {
const char* GetString() const;
std::string to_string();
char* ToString();
char* EncodeBase64();
private:
void Grow(size_t additional_length);

View File

@ -21,6 +21,8 @@ namespace gl4 {
using namespace xe::gpu::ucode;
using namespace xe::gpu::xenos;
#define Append(...) output_.AppendFormat(__VA_ARGS__)
static const char chan_names[] = {
'x', 'y', 'z', 'w',
// these only apply to FETCH dst's, and we shouldn't be using them:

View File

@ -47,12 +47,6 @@ class GL4ShaderTranslator {
bool is_pixel_shader() const { return shader_type_ == ShaderType::kPixel; }
void Reset(GL4Shader* shader);
void Append(const char* format, ...) {
va_list args;
va_start(args, format);
output_.AppendVarargs(format, args);
va_end(args);
}
void AppendSrcReg(const ucode::instr_alu_t& op, int i);
void AppendSrcReg(const ucode::instr_alu_t& op, uint32_t num, uint32_t type,