mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-04 03:50:31 +01:00
Revert "r300g: flush CS if a buffer being deleted is referenced by it"
As requested by just about everybody. I'm going back to actually reading
patches before ACKing and pushing them.
This reverts commit 417ce06306.
Conflicts:
src/gallium/winsys/drm/radeon/core/radeon_buffer.c
This commit is contained in:
parent
7855fcb63b
commit
a70eba5648
3 changed files with 0 additions and 8 deletions
|
|
@ -82,7 +82,6 @@ static struct pipe_buffer *radeon_buffer_create(struct pipe_winsys *ws,
|
|||
domain |= RADEON_GEM_DOMAIN_GTT;
|
||||
}
|
||||
|
||||
radeon_buffer->ws = radeon_ws;
|
||||
radeon_buffer->bo = radeon_bo_open(radeon_ws->priv->bom, 0, size,
|
||||
alignment, domain, 0);
|
||||
if (radeon_buffer->bo == NULL) {
|
||||
|
|
@ -133,11 +132,6 @@ static void radeon_buffer_del(struct pipe_buffer *buffer)
|
|||
{
|
||||
struct radeon_pipe_buffer *radeon_buffer =
|
||||
(struct radeon_pipe_buffer*)buffer;
|
||||
struct radeon_winsys_priv *priv = radeon_buffer->ws->priv;
|
||||
|
||||
if (radeon_bo_is_referenced_by_cs(radeon_buffer->bo, priv->cs)) {
|
||||
priv->flush_cb(priv->flush_data);
|
||||
}
|
||||
|
||||
radeon_bo_unref(radeon_buffer->bo);
|
||||
free(radeon_buffer);
|
||||
|
|
|
|||
|
|
@ -50,7 +50,6 @@
|
|||
struct radeon_pipe_buffer {
|
||||
struct pipe_buffer base;
|
||||
struct radeon_bo *bo;
|
||||
struct radeon_winsys *ws;
|
||||
boolean flinked;
|
||||
uint32_t flink;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -171,7 +171,6 @@ struct pipe_buffer* radeon_buffer_from_handle(struct drm_api* api,
|
|||
radeon_buffer->base.screen = screen;
|
||||
radeon_buffer->base.usage = PIPE_BUFFER_USAGE_PIXEL;
|
||||
radeon_buffer->bo = bo;
|
||||
radeon_buffer->ws = (struct radeon_winsys*)screen->winsys;
|
||||
return &radeon_buffer->base;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue