mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-17 16:08:06 +02:00
i965/gen6: Fix scissors using invalid STATE_BASE_ADDRESS.
The scissor state was incorrectly in a .prepare function instead of
.emit, so the packet would end up in the batch before the
STATE_BASE_ADDRESS. It appears that this doesn't actually hurt, as
the scissor address gets dereferenced according to the current SBA at
draw time.
(cherry picked from commit cd7bfd5d44)
This commit is contained in:
parent
8d9202c162
commit
9eace71048
1 changed files with 2 additions and 2 deletions
|
|
@ -31,7 +31,7 @@
|
|||
#include "intel_batchbuffer.h"
|
||||
|
||||
static void
|
||||
gen6_prepare_scissor_state(struct brw_context *brw)
|
||||
gen6_upload_scissor_state(struct brw_context *brw)
|
||||
{
|
||||
struct intel_context *intel = &brw->intel;
|
||||
struct gl_context *ctx = &intel->ctx;
|
||||
|
|
@ -89,5 +89,5 @@ const struct brw_tracked_state gen6_scissor_state = {
|
|||
.brw = BRW_NEW_BATCH,
|
||||
.cache = 0,
|
||||
},
|
||||
.prepare = gen6_prepare_scissor_state,
|
||||
.emit = gen6_upload_scissor_state,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue