mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 13:38:06 +02:00
svga: update some comments in svga_buffer_handle()
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
This commit is contained in:
parent
fe76212873
commit
5d07998317
1 changed files with 3 additions and 10 deletions
|
|
@ -786,19 +786,12 @@ svga_buffer_handle(struct svga_context *svga,
|
||||||
|
|
||||||
if (sbuf->map.num_ranges) {
|
if (sbuf->map.num_ranges) {
|
||||||
if (!sbuf->dma.pending) {
|
if (!sbuf->dma.pending) {
|
||||||
/*
|
/* No pending DMA/update commands yet. */
|
||||||
* No pending DMA upload yet, so insert a DMA upload command now.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
/* Migrate the data from swbuf -> hwbuf if necessary */
|
||||||
* Migrate the data from swbuf -> hwbuf if necessary.
|
|
||||||
*/
|
|
||||||
ret = svga_buffer_update_hw(svga, sbuf);
|
ret = svga_buffer_update_hw(svga, sbuf);
|
||||||
if (ret == PIPE_OK) {
|
if (ret == PIPE_OK) {
|
||||||
/*
|
/* Emit DMA or UpdateGBImage commands */
|
||||||
* Queue a dma command.
|
|
||||||
*/
|
|
||||||
|
|
||||||
ret = svga_buffer_upload_command(svga, sbuf);
|
ret = svga_buffer_upload_command(svga, sbuf);
|
||||||
if (ret == PIPE_ERROR_OUT_OF_MEMORY) {
|
if (ret == PIPE_ERROR_OUT_OF_MEMORY) {
|
||||||
svga_context_flush(svga, NULL);
|
svga_context_flush(svga, NULL);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue