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:
José Fonseca
2007-11-05 18:04:35 +00:00
parent 4f79dbd5aa
commit fa1a66d7fc
10 changed files with 60 additions and 19 deletions

View File

@@ -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;