if (!mem)
return NULL;
- mema.flags = mem->type = type;
+ mema.flags = type;
mema.size = mem->size = size;
mema.alignment = align;
mem->map = NULL;
return NULL;
}
mem->offset = mema.region_offset;
+ mem->type = mema.flags;
if (type & NOUVEAU_MEM_MAPPED)
ret = drmMap(nmesa->driFd, mem->offset, mem->size, &mem->map);
extern uint32_t nouveau_mem_gpu_offset_get(GLcontext *ctx, nouveau_mem *mem);
extern GLboolean nouveau_memformat_flat_emit(GLcontext *ctx,
- nouveau_mem *dst, nouveau_mem *src,
- GLuint dst_offset, GLuint src_offset,
+ nouveau_mem *dst,
+ nouveau_mem *src,
+ GLuint dst_offset,
+ GLuint src_offset,
GLuint size);
typedef struct nouveau_renderbuffer_t {