Commit f834656a authored by Christian Gmeiner's avatar Christian Gmeiner
Browse files

etnaviv: fix compile warnings

Fixes: e5cc66df ("etnaviv: Rework locking")
Fixes: 1456aa61

 ("etnaviv: Rework resource status tracking")
Signed-off-by: Christian Gmeiner's avatarChristian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Jonathan Marek's avatarJonathan Marek <jonathan@marek.ca>
parent d8741ad2
Pipeline #71857 passed with stages
in 21 minutes and 22 seconds
......@@ -61,7 +61,6 @@ static void
etna_context_destroy(struct pipe_context *pctx)
{
struct etna_context *ctx = etna_context(pctx);
struct etna_screen *screen = ctx->screen;
mtx_lock(&ctx->lock);
if (ctx->used_resources_read) {
......@@ -434,7 +433,6 @@ etna_flush(struct pipe_context *pctx, struct pipe_fence_handle **fence,
enum pipe_flush_flags flags)
{
struct etna_context *ctx = etna_context(pctx);
struct etna_screen *screen = ctx->screen;
int out_fence_fd = -1;
mtx_lock(&ctx->lock);
......
......@@ -612,7 +612,6 @@ etna_resource_get_status(struct etna_context *ctx, struct etna_resource *rsc)
set_foreach(rsc->pending_ctx, entry) {
struct etna_context *extctx = (struct etna_context *)entry->key;
struct pipe_context *pctx = &extctx->base;
set_foreach(extctx->used_resources_read, entry2) {
struct etna_resource *rsc2 = (struct etna_resource *)entry2->key;
......@@ -638,7 +637,6 @@ void
etna_resource_used(struct etna_context *ctx, struct pipe_resource *prsc,
enum etna_resource_status status)
{
struct etna_screen *screen = ctx->screen;
struct pipe_resource *referenced = NULL;
struct etna_resource *rsc;
......@@ -649,8 +647,6 @@ etna_resource_used(struct etna_context *ctx, struct pipe_resource *prsc,
rsc = etna_resource(prsc);
enum etna_resource_status newstatus = 0;
set_foreach(rsc->pending_ctx, entry) {
struct etna_context *extctx = (struct etna_context *)entry->key;
struct pipe_context *pctx = &extctx->base;
......
......@@ -346,7 +346,6 @@ etna_transfer_map(struct pipe_context *pctx, struct pipe_resource *prsc,
* transfers without a temporary resource.
*/
if (trans->rsc || !(usage & PIPE_TRANSFER_UNSYNCHRONIZED)) {
struct etna_screen *screen = ctx->screen;
uint32_t prep_flags = 0;
/*
......
Supports Markdown
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