mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 00:45:35 +00:00
gpu,gpu/backend: [compute] handle loss of buffer contents during download
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -821,6 +821,9 @@ func (g *compute) render(tileDims image.Point) error {
|
||||
t.kernel4.end()
|
||||
|
||||
if err := g.buffers.memory.buffer.Download(gunsafe.StructView(g.memHeader)); err != nil {
|
||||
if err == backend.ErrContentLost {
|
||||
continue
|
||||
}
|
||||
return err
|
||||
}
|
||||
switch errCode := g.memHeader.mem_error; errCode {
|
||||
|
||||
Reference in New Issue
Block a user