Skip to content

Instantly share code, notes, and snippets.

@Subv
Created April 21, 2015 21:34
Show Gist options
  • Select an option

  • Save Subv/00126b697ae91084258d to your computer and use it in GitHub Desktop.

Select an option

Save Subv/00126b697ae91084258d to your computer and use it in GitHub Desktop.
@@ -595,6 +608,10 @@ OutputVertex RunShader(const InputVertex& input, int num_attributes) {
state.conditional_code[0] = false;
state.conditional_code[1] = false;
+ if (state.input_register_table[0]->ToFloat32() == 15) {
+ LOG_CRITICAL(HW_GPU, "v0.x = 15, c(6 + 15) = %f, %f, %f, %f", shader_uniforms.f[0x15].x.ToFloat32(), shader_uniforms.f[0x15].y.ToFloat32(), shader_uniforms.f[0x15].z.ToFloat32(), shader_uniforms.f[0x15].w.ToFloat32());
+ }
+
ProcessShaderCode(state);
DebugUtils::DumpShader(shader_memory.data(), state.debug.max_offset, swizzle_data.data(),
state.debug.max_opdesc_id, registers.vs_main_offset,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment