Commit f9634a2c authored by Michel Dänzer's avatar Michel Dänzer Committed by Michel Dänzer
Browse files

gallium: Remove resource_get_info hook

No users left.
parent 73503251
Pipeline #62448 canceled with stages
in 18 seconds
......@@ -323,17 +323,6 @@ dd_screen_resource_get_param(struct pipe_screen *_screen,
return screen->resource_get_param(screen, resource, plane, param, value);
}
static void
dd_screen_resource_get_info(struct pipe_screen *_screen,
struct pipe_resource *resource,
unsigned *stride,
unsigned *offset)
{
struct pipe_screen *screen = dd_screen(_screen)->screen;
screen->resource_get_info(screen, resource, stride, offset);
}
static bool
dd_screen_check_resource_capability(struct pipe_screen *_screen,
struct pipe_resource *resource,
......@@ -578,7 +567,6 @@ ddebug_screen_create(struct pipe_screen *screen)
SCR_INIT(check_resource_capability);
dscreen->base.resource_get_handle = dd_screen_resource_get_handle;
SCR_INIT(resource_get_param);
SCR_INIT(resource_get_info);
SCR_INIT(resource_changed);
dscreen->base.resource_destroy = dd_screen_resource_destroy;
SCR_INIT(flush_frontbuffer);
......
......@@ -231,20 +231,6 @@ rbug_screen_resource_get_param(struct pipe_screen *_screen,
}
static void
rbug_screen_resource_get_info(struct pipe_screen *_screen,
struct pipe_resource *_resource,
unsigned *stride,
unsigned *offset)
{
struct rbug_screen *rb_screen = rbug_screen(_screen);
struct rbug_resource *rb_resource = rbug_resource(_resource);
struct pipe_screen *screen = rb_screen->screen;
struct pipe_resource *resource = rb_resource->resource;
screen->resource_get_info(screen, resource, stride, offset);
}
static void
rbug_screen_resource_changed(struct pipe_screen *_screen,
struct pipe_resource *_resource)
......@@ -350,7 +336,6 @@ rbug_screen_create(struct pipe_screen *screen)
SCR_INIT(check_resource_capability);
rb_screen->base.resource_get_handle = rbug_screen_resource_get_handle;
SCR_INIT(resource_get_param);
SCR_INIT(resource_get_info);
SCR_INIT(resource_changed);
rb_screen->base.resource_destroy = rbug_screen_resource_destroy;
rb_screen->base.flush_frontbuffer = rbug_screen_flush_frontbuffer;
......
......@@ -422,20 +422,6 @@ trace_screen_resource_get_param(struct pipe_screen *_screen,
return screen->resource_get_param(screen, resource, plane, param, value);
}
static void
trace_screen_resource_get_info(struct pipe_screen *_screen,
struct pipe_resource *resource,
unsigned *stride,
unsigned *offset)
{
struct trace_screen *tr_screen = trace_screen(_screen);
struct pipe_screen *screen = tr_screen->screen;
/* TODO trace call */
screen->resource_get_info(screen, resource, stride, offset);
}
static struct pipe_resource *
trace_screen_resource_from_memobj(struct pipe_screen *_screen,
const struct pipe_resource *templ,
......@@ -703,7 +689,6 @@ trace_screen_create(struct pipe_screen *screen)
SCR_INIT(check_resource_capability);
tr_scr->base.resource_get_handle = trace_screen_resource_get_handle;
SCR_INIT(resource_get_param);
SCR_INIT(resource_get_info);
SCR_INIT(resource_from_memobj);
SCR_INIT(resource_changed);
tr_scr->base.resource_destroy = trace_screen_resource_destroy;
......
......@@ -471,30 +471,6 @@ static bool r600_texture_get_param(struct pipe_screen* screen,
}
}
static void r600_texture_get_info(struct pipe_screen* screen,
struct pipe_resource *resource,
unsigned *pstride,
unsigned *poffset)
{
if (pstride) {
uint64_t stride = 0;
r600_texture_get_param(screen, resource, 0,
PIPE_RESOURCE_PARAM_STRIDE,
&stride);
*pstride = stride;
}
if (poffset) {
uint64_t offset = 0;
r600_texture_get_param(screen, resource, 0,
PIPE_RESOURCE_PARAM_OFFSET,
&offset);
*poffset = offset;
}
}
static bool r600_texture_get_handle(struct pipe_screen* screen,
struct pipe_context *ctx,
struct pipe_resource *resource,
......@@ -2001,7 +1977,6 @@ void r600_init_screen_texture_functions(struct r600_common_screen *rscreen)
{
rscreen->b.resource_from_handle = r600_texture_from_handle;
rscreen->b.resource_get_handle = r600_texture_get_handle;
rscreen->b.resource_get_info = r600_texture_get_info;
rscreen->b.resource_get_param = r600_texture_get_param;
rscreen->b.resource_from_memobj = r600_texture_from_memobj;
rscreen->b.memobj_create_from_handle = r600_memobj_from_handle;
......
......@@ -911,30 +911,6 @@ static bool si_texture_get_param(struct pipe_screen* screen,
}
}
static void si_texture_get_info(struct pipe_screen* screen,
struct pipe_resource *resource,
unsigned *pstride,
unsigned *poffset)
{
if (pstride) {
uint64_t stride = 0;
si_texture_get_param(screen, resource, 0,
PIPE_RESOURCE_PARAM_STRIDE,
&stride);
*pstride = stride;
}
if (poffset) {
uint64_t offset = 0;
si_texture_get_param(screen, resource, 0,
PIPE_RESOURCE_PARAM_OFFSET,
&offset);
*poffset = offset;
}
}
static bool si_texture_get_handle(struct pipe_screen* screen,
struct pipe_context *ctx,
struct pipe_resource *resource,
......@@ -2598,7 +2574,6 @@ void si_init_screen_texture_functions(struct si_screen *sscreen)
{
sscreen->b.resource_from_handle = si_texture_from_handle;
sscreen->b.resource_get_handle = si_texture_get_handle;
sscreen->b.resource_get_info = si_texture_get_info;
sscreen->b.resource_get_param = si_texture_get_param;
sscreen->b.resource_from_memobj = si_texture_from_memobj;
sscreen->b.memobj_create_from_handle = si_memobj_from_handle;
......
......@@ -272,15 +272,6 @@ struct pipe_screen {
enum pipe_resource_param param,
uint64_t *value);
/**
* Get stride and offset for the given pipe resource without the need to get
* a winsys_handle.
*/
void (*resource_get_info)(struct pipe_screen *screen,
struct pipe_resource *resource,
unsigned *stride,
unsigned *offset);
/**
* Mark the resource as changed so derived internal resources will be
* recreated on next use.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment