mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
i915tex: Fix some minor batchbuffer errors.
This commit is contained in:
parent
718d2dfbbd
commit
1cab4160bc
1 changed files with 5 additions and 1 deletions
|
|
@ -198,7 +198,7 @@ i915_emit_invarient_state(struct intel_context *intel)
|
|||
|
||||
/* Need to initialize this to zero.
|
||||
*/
|
||||
OUT_BATCH(_3DSTATE_LOAD_STATE_IMMEDIATE_1 | I1_LOAD_S(3) | (1));
|
||||
OUT_BATCH(_3DSTATE_LOAD_STATE_IMMEDIATE_1 | I1_LOAD_S(3) | (0));
|
||||
OUT_BATCH(0);
|
||||
|
||||
/* XXX: Use this */
|
||||
|
|
@ -216,6 +216,7 @@ i915_emit_invarient_state(struct intel_context *intel)
|
|||
|
||||
/* Don't support twosided stencil yet */
|
||||
OUT_BATCH(_3DSTATE_BACKFACE_STENCIL_OPS | BFO_ENABLE_STENCIL_TWO_SIDE | 0);
|
||||
OUT_BATCH(0);
|
||||
|
||||
ADVANCE_BATCH();
|
||||
}
|
||||
|
|
@ -247,6 +248,9 @@ get_state_size(struct i915_hw_state *state)
|
|||
GLuint i;
|
||||
GLuint sz = 0;
|
||||
|
||||
if (dirty & I915_UPLOAD_INVARIENT)
|
||||
sz += 30 * 4;
|
||||
|
||||
if (dirty & I915_UPLOAD_CTX)
|
||||
sz += sizeof(state->Ctx);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue