mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
mesa: add Driver.InvalidateBufferSubData
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
53c77494aa
commit
6f4ae81005
2 changed files with 9 additions and 8 deletions
|
|
@ -3939,10 +3939,8 @@ _mesa_InvalidateBufferSubData(GLuint buffer, GLintptr offset,
|
|||
return;
|
||||
}
|
||||
|
||||
/* We don't actually do anything for this yet. Just return after
|
||||
* validating the parameters and generating the required errors.
|
||||
*/
|
||||
return;
|
||||
if (ctx->Driver.InvalidateBufferSubData)
|
||||
ctx->Driver.InvalidateBufferSubData(ctx, bufObj, offset, length);
|
||||
}
|
||||
|
||||
void GLAPIENTRY
|
||||
|
|
@ -3979,8 +3977,6 @@ _mesa_InvalidateBufferData(GLuint buffer)
|
|||
return;
|
||||
}
|
||||
|
||||
/* We don't actually do anything for this yet. Just return after
|
||||
* validating the parameters and generating the required errors.
|
||||
*/
|
||||
return;
|
||||
if (ctx->Driver.InvalidateBufferSubData)
|
||||
ctx->Driver.InvalidateBufferSubData(ctx, bufObj, 0, bufObj->Size);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -634,6 +634,11 @@ struct dd_function_table {
|
|||
GLintptr readOffset, GLintptr writeOffset,
|
||||
GLsizeiptr size );
|
||||
|
||||
void (*InvalidateBufferSubData)( struct gl_context *ctx,
|
||||
struct gl_buffer_object *obj,
|
||||
GLintptr offset,
|
||||
GLsizeiptr length );
|
||||
|
||||
/* Returns pointer to the start of the mapped range.
|
||||
* May return NULL if MESA_MAP_NOWAIT_BIT is set in access:
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue