}
}
-static void r600_flush_from_st(struct pipe_context *ctx,
- struct pipe_fence_handle **fence,
- unsigned flags)
+static void si_flush_from_st(struct pipe_context *ctx,
+ struct pipe_fence_handle **fence,
+ unsigned flags)
{
si_flush(ctx, fence,
flags & PIPE_FLUSH_END_OF_FRAME ? RADEON_FLUSH_END_OF_FRAME : 0);
}
-static void r600_flush_from_winsys(void *ctx, unsigned flags)
+static void si_flush_from_winsys(void *ctx, unsigned flags)
{
si_flush((struct pipe_context*)ctx, NULL, flags);
}
-static void r600_destroy_context(struct pipe_context *context)
+static void si_destroy_context(struct pipe_context *context)
{
struct si_context *rctx = (struct si_context *)context;
FREE(rctx);
}
-static struct pipe_context *r600_create_context(struct pipe_screen *screen, void *priv)
+static struct pipe_context *si_create_context(struct pipe_screen *screen, void *priv)
{
struct si_context *rctx = CALLOC_STRUCT(si_context);
struct si_screen* rscreen = (struct si_screen *)screen;
rctx->b.b.screen = screen;
rctx->b.b.priv = priv;
- rctx->b.b.destroy = r600_destroy_context;
- rctx->b.b.flush = r600_flush_from_st;
+ rctx->b.b.destroy = si_destroy_context;
+ rctx->b.b.flush = si_flush_from_st;
/* Easy accessing of screen/winsys. */
rctx->screen = rscreen;
}
rctx->b.rings.gfx.cs = rctx->b.ws->cs_create(rctx->b.ws, RING_GFX, NULL);
- rctx->b.rings.gfx.flush = r600_flush_from_winsys;
+ rctx->b.rings.gfx.flush = si_flush_from_winsys;
si_init_all_descriptors(rctx);
goto fail;
}
- rctx->b.ws->cs_set_flush_callback(rctx->b.rings.gfx.cs, r600_flush_from_winsys, rctx);
+ rctx->b.ws->cs_set_flush_callback(rctx->b.rings.gfx.cs, si_flush_from_winsys, rctx);
rctx->blitter = util_blitter_create(&rctx->b.b);
if (rctx->blitter == NULL)
return &rctx->b.b;
fail:
- r600_destroy_context(&rctx->b.b);
+ si_destroy_context(&rctx->b.b);
return NULL;
}
/*
* pipe_screen
*/
-static const char* r600_get_vendor(struct pipe_screen* pscreen)
+static const char* si_get_vendor(struct pipe_screen* pscreen)
{
return "X.Org";
}
}
}
-static const char *r600_get_family_name(enum radeon_family family)
+static const char *si_get_family_name(enum radeon_family family)
{
switch(family) {
case CHIP_TAHITI: return "AMD TAHITI";
}
}
-static const char* r600_get_name(struct pipe_screen* pscreen)
+static const char* si_get_name(struct pipe_screen* pscreen)
{
struct si_screen *rscreen = (struct si_screen *)pscreen;
- return r600_get_family_name(rscreen->b.family);
+ return si_get_family_name(rscreen->b.family);
}
-static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
+static int si_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
{
struct si_screen *rscreen = (struct si_screen *)pscreen;
return 0;
}
-static float r600_get_paramf(struct pipe_screen* pscreen,
+static float si_get_paramf(struct pipe_screen* pscreen,
enum pipe_capf param)
{
switch (param) {
return 0.0f;
}
-static int r600_get_shader_param(struct pipe_screen* pscreen, unsigned shader, enum pipe_shader_cap param)
+static int si_get_shader_param(struct pipe_screen* pscreen, unsigned shader, enum pipe_shader_cap param)
{
switch(shader)
{
return 0;
}
-static int r600_get_video_param(struct pipe_screen *screen,
- enum pipe_video_profile profile,
- enum pipe_video_entrypoint entrypoint,
- enum pipe_video_cap param)
+static int si_get_video_param(struct pipe_screen *screen,
+ enum pipe_video_profile profile,
+ enum pipe_video_entrypoint entrypoint,
+ enum pipe_video_cap param)
{
switch (param) {
case PIPE_VIDEO_CAP_SUPPORTED:
}
}
-static int r600_get_compute_param(struct pipe_screen *screen,
+static int si_get_compute_param(struct pipe_screen *screen,
enum pipe_compute_cap param,
void *ret)
{
if (ret) {
uint64_t max_global_size;
uint64_t *max_mem_alloc_size = ret;
- r600_get_compute_param(screen, PIPE_COMPUTE_CAP_MAX_GLOBAL_SIZE, &max_global_size);
+ si_get_compute_param(screen, PIPE_COMPUTE_CAP_MAX_GLOBAL_SIZE, &max_global_size);
*max_mem_alloc_size = max_global_size / 4;
}
return sizeof(uint64_t);
}
}
-static void r600_destroy_screen(struct pipe_screen* pscreen)
+static void si_destroy_screen(struct pipe_screen* pscreen)
{
struct si_screen *rscreen = (struct si_screen *)pscreen;
FREE(rscreen);
}
-static uint64_t r600_get_timestamp(struct pipe_screen *screen)
+static uint64_t si_get_timestamp(struct pipe_screen *screen)
{
struct si_screen *rscreen = (struct si_screen*)screen;
ws->query_info(ws, &rscreen->b.info);
/* Set functions first. */
- rscreen->b.b.context_create = r600_create_context;
- rscreen->b.b.destroy = r600_destroy_screen;
- rscreen->b.b.get_name = r600_get_name;
- rscreen->b.b.get_vendor = r600_get_vendor;
- rscreen->b.b.get_param = r600_get_param;
- rscreen->b.b.get_shader_param = r600_get_shader_param;
- rscreen->b.b.get_paramf = r600_get_paramf;
- rscreen->b.b.get_compute_param = r600_get_compute_param;
- rscreen->b.b.get_timestamp = r600_get_timestamp;
+ rscreen->b.b.context_create = si_create_context;
+ rscreen->b.b.destroy = si_destroy_screen;
+ rscreen->b.b.get_name = si_get_name;
+ rscreen->b.b.get_vendor = si_get_vendor;
+ rscreen->b.b.get_param = si_get_param;
+ rscreen->b.b.get_shader_param = si_get_shader_param;
+ rscreen->b.b.get_paramf = si_get_paramf;
+ rscreen->b.b.get_compute_param = si_get_compute_param;
+ rscreen->b.b.get_timestamp = si_get_timestamp;
rscreen->b.b.is_format_supported = si_is_format_supported;
if (rscreen->b.info.has_uvd) {
rscreen->b.b.get_video_param = ruvd_get_video_param;
rscreen->b.b.is_video_format_supported = ruvd_is_format_supported;
} else {
- rscreen->b.b.get_video_param = r600_get_video_param;
+ rscreen->b.b.get_video_param = si_get_video_param;
rscreen->b.b.is_video_format_supported = vl_video_buffer_is_format_supported;
}
si_init_screen_resource_functions(&rscreen->b.b);