diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4.cpp | 9 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4.h | 3 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 5 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vs.c | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vs.h | 4 |
5 files changed, 14 insertions, 9 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp b/src/mesa/drivers/dri/i965/brw_vec4.cpp index 227accae45f..d203ca90765 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4.cpp @@ -1128,10 +1128,11 @@ vec4_visitor::run() extern "C" { bool -brw_vs_emit(struct gl_shader_program *prog, struct brw_vs_compile *c) +brw_vs_emit(struct brw_context *brw, + struct gl_shader_program *prog, + struct brw_vs_compile *c) { - struct brw_context *brw = c->func.brw; - struct intel_context *intel = &c->func.brw->intel; + struct intel_context *intel = &brw->intel; bool start_busy = false; float start_time = 0; @@ -1168,7 +1169,7 @@ brw_vs_emit(struct gl_shader_program *prog, struct brw_vs_compile *c) shader->compiled_once = true; } - vec4_visitor v(c, prog, shader); + vec4_visitor v(brw, c, prog, shader); if (!v.run()) { prog->LinkStatus = false; ralloc_strcat(&prog->InfoLog, v.fail_msg); diff --git a/src/mesa/drivers/dri/i965/brw_vec4.h b/src/mesa/drivers/dri/i965/brw_vec4.h index 908d7d8825d..f474b0f7621 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4.h +++ b/src/mesa/drivers/dri/i965/brw_vec4.h @@ -198,7 +198,8 @@ public: class vec4_visitor : public backend_visitor { public: - vec4_visitor(struct brw_vs_compile *c, + vec4_visitor(struct brw_context *brw, + struct brw_vs_compile *c, struct gl_shader_program *prog, struct brw_shader *shader); ~vec4_visitor(); diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp index edb66ea7d8e..982b74c19ec 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp @@ -2806,13 +2806,14 @@ vec4_visitor::resolve_ud_negate(src_reg *reg) *reg = temp; } -vec4_visitor::vec4_visitor(struct brw_vs_compile *c, +vec4_visitor::vec4_visitor(struct brw_context *brw, + struct brw_vs_compile *c, struct gl_shader_program *prog, struct brw_shader *shader) { this->c = c; this->p = &c->func; - this->brw = p->brw; + this->brw = brw; this->intel = &brw->intel; this->ctx = &intel->ctx; this->prog = prog; diff --git a/src/mesa/drivers/dri/i965/brw_vs.c b/src/mesa/drivers/dri/i965/brw_vs.c index 232600aece7..8cced4be733 100644 --- a/src/mesa/drivers/dri/i965/brw_vs.c +++ b/src/mesa/drivers/dri/i965/brw_vs.c @@ -280,7 +280,7 @@ do_vs_prog(struct brw_context *brw, /* Emit GEN4 code. */ - if (!brw_vs_emit(prog, &c)) { + if (!brw_vs_emit(brw, prog, &c)) { ralloc_free(mem_ctx); return false; } diff --git a/src/mesa/drivers/dri/i965/brw_vs.h b/src/mesa/drivers/dri/i965/brw_vs.h index 279c18fab0b..2c085474733 100644 --- a/src/mesa/drivers/dri/i965/brw_vs.h +++ b/src/mesa/drivers/dri/i965/brw_vs.h @@ -103,7 +103,9 @@ struct brw_vs_compile { GLuint last_scratch; /**< measured in 32-byte (register size) units */ }; -bool brw_vs_emit(struct gl_shader_program *prog, struct brw_vs_compile *c); +bool brw_vs_emit(struct brw_context *brw, + struct gl_shader_program *prog, + struct brw_vs_compile *c); bool brw_vs_precompile(struct gl_context *ctx, struct gl_shader_program *prog); void brw_vs_debug_recompile(struct brw_context *brw, struct gl_shader_program *prog, |