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) {
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);
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;
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;
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;