Lines Matching refs:data

43    if (!buf->data)
44 buf->data = align_malloc(buf->base.width0, NOUVEAU_MIN_BUFFER_MAP_ALIGN);
45 return !!buf->data;
139 if (res->data && !(res->status & NOUVEAU_BUFFER_STATUS_USER_MEMORY))
140 align_free(res->data);
153 * system memory if the driver supports push_data (nv50+) and the data is
182 /* Copies data from the resource into the transfer's temporary GART
183 * buffer. Also updates buf->data if present.
201 if (buf->data)
202 memcpy(buf->data + base, tx->map, size);
212 uint8_t *data = tx->map + offset;
216 if (buf->data)
217 memcpy(data, buf->data + base, size);
232 base, size / 4, (const uint32_t *)data);
234 nv->push_data(nv, buf->bo, buf->offset + base, buf->domain, size, data);
240 /* Does a CPU wait for the buffer's backing data to become reliably accessible
317 /* Creates a cache in system memory of the buffer data. */
329 if (!buf->data)
342 memcpy(buf->data, tx.map, buf->base.width0);
354 * operation to complete on this data.
369 * resource's data.
385 * DISCARD_RANGE means that all the data in the specified range is going to
442 if (buf->data) {
443 align_free(buf->data);
444 buf->data = NULL;
450 * and make sure that the cached data is up-to-date. */
453 if (!buf->data)
457 return buf->data ? (buf->data + box->x) : tx->map;
460 return buf->data + box->x;
515 * data in question, so we must copy it over from the buffer. */
546 * was returned was not the real resource's data, this needs to transfer the
547 * data back to the resource.
633 return res->data + offset;
636 if (!res->data || (res->status & NOUVEAU_BUFFER_STATUS_GPU_WRITING))
640 return res->data + offset;
667 return nv04_resource(resource)->data;
757 /* set address and data to the same thing for higher compatibility with
762 buffer->data = user_ptr;
790 buffer->data = ptr;
807 memcpy(buf->data, (uint8_t *)bo->map + offset, size);
833 memcpy((uint8_t *)buf->bo->map + buf->offset, buf->data, size);
834 align_free(buf->data);
840 /* keep a system memory copy of our data in case we hit a fallback */
880 /* Migrate data from glVertexAttribPointer(non-VBO) user buffers to GART.
903 memcpy((uint8_t *)buf->bo->map + buf->offset + base, buf->data + base, size);
939 /* Scratch data allocation. */
1052 /* Copy data to a scratch buffer and return address & bo the data resides in. */
1055 const void *data, unsigned base, unsigned size,
1069 memcpy(nv->scratch.map + bgn, (const uint8_t *)data + base, size);