Supply buffer usage hints to winsys.
Winsys driver needs some hints in order to allocate the appropriate kind of memory for the buffer.
This commit is contained in:
@@ -80,7 +80,8 @@ void st_upload_constants( struct st_context *st,
|
||||
}
|
||||
|
||||
/* load Mesa constants into the constant buffer */
|
||||
ws->buffer_data(ws, cbuf->buffer, paramBytes, params->ParameterValues);
|
||||
ws->buffer_data(ws, cbuf->buffer, paramBytes, params->ParameterValues,
|
||||
PIPE_BUFFER_USAGE_CONSTANT);
|
||||
|
||||
cbuf->size = paramBytes;
|
||||
|
||||
|
Reference in New Issue
Block a user