intel_batch_init: test have_gem, not directRenderingType
Under KMS, directRenderingType will get set to DRI_NONE during driver initialization. When the first batch buffer is allocated, as directRenderingType is DRI_NONE, the GEM bufmgr would get trashed as intel_batch_init called a fake-bufmgr specific function. Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
6d062e9e9f
commit
cdbf84f202
|
|
@ -135,7 +135,7 @@ intel_batch_init(ScrnInfoPtr pScrn)
|
|||
|
||||
intel_next_batch(pScrn);
|
||||
|
||||
if (pI830->directRenderingType <= DRI_NONE) {
|
||||
if (!pI830->have_gem) {
|
||||
if (IS_I830(pI830) || IS_845G(pI830)) {
|
||||
intel_bufmgr_fake_set_exec_callback(pI830->bufmgr,
|
||||
intel_nondrm_exec_i830,
|
||||
|
|
|
|||
Loading…
Reference in New Issue