mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 17:10:11 +01:00
i915: fix abort issue. (bug #19147)
This commit is contained in:
parent
35aebf4667
commit
df73363ed1
2 changed files with 24 additions and 4 deletions
|
|
@ -297,7 +297,7 @@ i830_emit_invarient_state(struct intel_context *intel)
|
|||
{
|
||||
BATCH_LOCALS;
|
||||
|
||||
BEGIN_BATCH(40, IGNORE_CLIPRECTS);
|
||||
BEGIN_BATCH(30, IGNORE_CLIPRECTS);
|
||||
|
||||
OUT_BATCH(_3DSTATE_DFLT_DIFFUSE_CMD);
|
||||
OUT_BATCH(0);
|
||||
|
|
@ -491,8 +491,17 @@ i830_emit_state(struct intel_context *intel)
|
|||
}
|
||||
|
||||
if (dirty & I830_UPLOAD_BUFFERS) {
|
||||
GLuint count = 9;
|
||||
|
||||
DBG("I830_UPLOAD_BUFFERS:\n");
|
||||
BEGIN_BATCH(I830_DEST_SETUP_SIZE + 2, IGNORE_CLIPRECTS);
|
||||
|
||||
if (state->depth_region)
|
||||
count += 3;
|
||||
|
||||
if (intel->constant_cliprect)
|
||||
count += 6;
|
||||
|
||||
BEGIN_BATCH(count, IGNORE_CLIPRECTS);
|
||||
OUT_BATCH(state->Buffer[I830_DESTREG_CBUFADDR0]);
|
||||
OUT_BATCH(state->Buffer[I830_DESTREG_CBUFADDR1]);
|
||||
OUT_RELOC(state->draw_region->buffer,
|
||||
|
|
@ -557,6 +566,8 @@ i830_emit_state(struct intel_context *intel)
|
|||
OUT_BATCH(state->Tex[i][I830_TEXREG_TM0S4]);
|
||||
OUT_BATCH(state->Tex[i][I830_TEXREG_MCS]);
|
||||
OUT_BATCH(state->Tex[i][I830_TEXREG_CUBE]);
|
||||
|
||||
ADVANCE_BATCH();
|
||||
}
|
||||
|
||||
if (dirty & I830_UPLOAD_TEXBLEND(i)) {
|
||||
|
|
|
|||
|
|
@ -173,7 +173,7 @@ i915_emit_invarient_state(struct intel_context *intel)
|
|||
{
|
||||
BATCH_LOCALS;
|
||||
|
||||
BEGIN_BATCH(200, IGNORE_CLIPRECTS);
|
||||
BEGIN_BATCH(20, IGNORE_CLIPRECTS);
|
||||
|
||||
OUT_BATCH(_3DSTATE_AA_CMD |
|
||||
AA_LINE_ECAAR_WIDTH_ENABLE |
|
||||
|
|
@ -376,9 +376,18 @@ i915_emit_state(struct intel_context *intel)
|
|||
}
|
||||
|
||||
if (dirty & I915_UPLOAD_BUFFERS) {
|
||||
GLuint count = 9;
|
||||
|
||||
if (INTEL_DEBUG & DEBUG_STATE)
|
||||
fprintf(stderr, "I915_UPLOAD_BUFFERS:\n");
|
||||
BEGIN_BATCH(I915_DEST_SETUP_SIZE + 2, IGNORE_CLIPRECTS);
|
||||
|
||||
if (state->depth_region)
|
||||
count += 3;
|
||||
|
||||
if (intel->constant_cliprect)
|
||||
count += 6;
|
||||
|
||||
BEGIN_BATCH(count, IGNORE_CLIPRECTS);
|
||||
OUT_BATCH(state->Buffer[I915_DESTREG_CBUFADDR0]);
|
||||
OUT_BATCH(state->Buffer[I915_DESTREG_CBUFADDR1]);
|
||||
OUT_RELOC(state->draw_region->buffer,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue