mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-07 06:08:16 +02:00
r600g: fix clear_buffer fallback with offset != 0
Discovered by luck. This code path hasn't been exercised since transform feedback was implemented. Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
01526136ba
commit
7f1e34e6c8
1 changed files with 1 additions and 0 deletions
|
|
@ -604,6 +604,7 @@ static void r600_clear_buffer(struct pipe_context *ctx, struct pipe_resource *ds
|
|||
} else {
|
||||
uint32_t *map = r600_buffer_map_sync_with_rings(&rctx->b, r600_resource(dst),
|
||||
PIPE_TRANSFER_WRITE);
|
||||
map += offset / 4;
|
||||
size /= 4;
|
||||
for (unsigned i = 0; i < size; i++)
|
||||
*map++ = value;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue