Skip to content

Commit

Permalink
Merge pull request #517 from DrChat/vfetch_fix
Browse files Browse the repository at this point in the history
Fix vfetch_mini instructions using stale data
  • Loading branch information
benvanik committed Jan 17, 2016
2 parents 3f6784b + 34e0329 commit ca135eb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/xenia/gpu/shader_translator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,14 @@ void ShaderTranslator::GatherBindingInformation(

void ShaderTranslator::GatherVertexBindingInformation(
const VertexFetchInstruction& op) {
ParsedVertexFetchInstruction fetch_instr;
ParseVertexFetchInstruction(op, &fetch_instr);

// Don't bother setting up a binding for an instruction that fetches nothing.
if (!op.fetches_any_data()) {
return;
}

ParsedVertexFetchInstruction fetch_instr;
ParseVertexFetchInstruction(op, &fetch_instr);

// Try to allocate an attribute on an existing binding.
// If no binding for this fetch slot is found create it.
using VertexBinding = Shader::VertexBinding;
Expand Down

0 comments on commit ca135eb

Please sign in to comment.