mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
nouveau: don't try to use push_data if it's not implemented
This commit is contained in:
parent
51b64ce47b
commit
e058f2ac97
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue