nouveau: don't try to use push_data if it's not implemented
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Fri, 25 Jan 2013 18:37:40 +0000 (19:37 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sun, 27 Jan 2013 12:45:06 +0000 (13:45 +0100)
src/gallium/drivers/nouveau/nouveau_buffer.c

index fdeeee538695407ce4a0a4314a489461db5215b0..0c3d43b46559cdc74bd5774599eb3cf56d5eb6fc 100644 (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)