This should be private to radeon_winsys.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
if (!dirty) {
if (is_vertex) {
- if (block->reloc[1].bo->bo->handle != state->bo[0]->bo->handle)
+ if (block->reloc[1].bo->bo->buf != state->bo[0]->bo->buf)
dirty |= R600_BLOCK_STATUS_RESOURCE_DIRTY;
} else {
- if ((block->reloc[1].bo->bo->handle != state->bo[0]->bo->handle) ||
- (block->reloc[2].bo->bo->handle != state->bo[1]->bo->handle))
+ if ((block->reloc[1].bo->bo->buf != state->bo[0]->bo->buf) ||
+ (block->reloc[2].bo->bo->buf != state->bo[1]->bo->buf))
dirty |= R600_BLOCK_STATUS_RESOURCE_DIRTY;
}
}
struct pipe_reference reference;
struct pb_buffer *buf;
struct radeon_winsys_cs_handle *cs_buf;
- unsigned handle;
unsigned size;
unsigned last_flush;
return NULL;
}
bo->cs_buf = radeon->ws->buffer_get_cs_handle(bo->buf);
- bo->handle = radeon->ws->trans_get_buffer_handle(bo->buf);
bo->size = size;
return bo;
}
return TRUE;
}
-static unsigned trans_get_buffer_handle(struct pb_buffer *buf)
-{
- return get_radeon_bo(buf)->handle;
-}
-
void radeon_bomgr_init_functions(struct radeon_drm_winsys *ws)
{
ws->base.buffer_get_cs_handle = radeon_drm_get_cs_handle;
ws->base.buffer_create = radeon_winsys_bo_create;
ws->base.buffer_from_handle = radeon_winsys_bo_from_handle;
ws->base.buffer_get_handle = radeon_winsys_bo_get_handle;
-
- ws->base.trans_get_buffer_handle = trans_get_buffer_handle;
}
boolean (*cs_request_feature)(struct radeon_winsys_cs *cs,
enum radeon_feature_id fid,
boolean enable);
-
-
- /* Transitional functions for r600g when moving to winsys/radeon */
- unsigned (*trans_get_buffer_handle)(struct pb_buffer *buf);
};
#endif