mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
i915: Check the program size when uploading a program. fix bug 13494
This commit is contained in:
parent
62f6e55013
commit
c1a3ac0e45
1 changed files with 8 additions and 6 deletions
|
|
@ -442,14 +442,16 @@ i915_do_emit_state(struct intel_context *intel)
|
|||
}
|
||||
|
||||
if (dirty & I915_UPLOAD_PROGRAM) {
|
||||
if (INTEL_DEBUG & DEBUG_STATE)
|
||||
fprintf(stderr, "I915_UPLOAD_PROGRAM:\n");
|
||||
if (ProgramSize) {
|
||||
if (INTEL_DEBUG & DEBUG_STATE)
|
||||
fprintf(stderr, "I915_UPLOAD_PROGRAM:\n");
|
||||
|
||||
assert((state->Program[0] & 0x1ff) + 2 == state->ProgramSize);
|
||||
assert((state->Program[0] & 0x1ff) + 2 == state->ProgramSize);
|
||||
|
||||
emit(intel, state->Program, state->ProgramSize * sizeof(GLuint));
|
||||
if (INTEL_DEBUG & DEBUG_STATE)
|
||||
i915_disassemble_program(state->Program, state->ProgramSize);
|
||||
emit(intel, state->Program, state->ProgramSize * sizeof(GLuint));
|
||||
if (INTEL_DEBUG & DEBUG_STATE)
|
||||
i915_disassemble_program(state->Program, state->ProgramSize);
|
||||
}
|
||||
}
|
||||
|
||||
intel->batch->dirty_state &= ~dirty;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue