mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-30 20:10:24 +01:00
radeon: update buffer map/unmap code for changes introduced in 92033a9516 and 822c796481
This commit is contained in:
parent
db928a5e91
commit
ff5535c521
1 changed files with 9 additions and 2 deletions
|
|
@ -187,7 +187,11 @@ radeonMapBuffer(GLcontext * ctx,
|
|||
|
||||
radeon_bo_map(radeon_obj->bo, access == GL_WRITE_ONLY_ARB);
|
||||
|
||||
return obj->Pointer = radeon_obj->bo->ptr;
|
||||
obj->Pointer = radeon_obj->bo->ptr;
|
||||
obj->Length = obj->Size;
|
||||
obj->Offset = 0;
|
||||
|
||||
return obj->Pointer;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -203,9 +207,12 @@ radeonUnmapBuffer(GLcontext * ctx,
|
|||
|
||||
if (radeon_obj->bo != NULL) {
|
||||
radeon_bo_unmap(radeon_obj->bo);
|
||||
obj->Pointer = NULL;
|
||||
}
|
||||
|
||||
obj->Pointer = NULL;
|
||||
obj->Offset = 0;
|
||||
obj->Length = 0;
|
||||
|
||||
return GL_TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue