radeon: fix bad state emission causes kernel to do bad depth clear
The kernel lets you clear depth without getting a depth offset from userspace, mesa used to emit state before clear, but that got lost in the refactoring, which made the kernel bug show up. Fix mesa driver to emit the state properly now. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
@@ -481,6 +481,7 @@ static void radeonKernelClear(GLcontext *ctx, GLuint flags)
|
||||
}
|
||||
}
|
||||
|
||||
radeonEmitState(&rmesa->radeon);
|
||||
/* Send current state to the hardware */
|
||||
rcommonFlushCmdBufLocked( &rmesa->radeon, __FUNCTION__ );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user