nouveau: don't try to use push_data if it's not implemented

This commit is contained in:
Christoph Bumiller 2013-01-25 19:37:40 +01:00
parent 51b64ce47b
commit e058f2ac97

View file

@ -124,6 +124,9 @@ nouveau_transfer_staging(struct nouveau_context *nv,
const unsigned adj = tx->base.box.x & NOUVEAU_MIN_BUFFER_MAP_ALIGN_MASK;
const unsigned size = align(tx->base.box.width, 4) + adj;
if (!nv->push_data)
permit_pb = FALSE;
if ((size <= NOUVEAU_TRANSFER_PUSHBUF_THRESHOLD) && permit_pb) {
tx->map = align_malloc(size, NOUVEAU_MIN_BUFFER_MAP_ALIGN);
if (tx->map)