summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2018-07-27 02:34:30 -0400
committerMarek Olšák <[email protected]>2018-07-27 16:31:56 -0400
commit5fe943aaee50bc243890317416ba27d084a75d51 (patch)
treed31d778d7cb69e052954040a319a4fffba588af0 /src
parent50403193312313d8c4212647208ba2d9998cbe52 (diff)
gallium/noop: implement invalidate_resource
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/driver_noop/noop_pipe.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/driver_noop/noop_pipe.c b/src/gallium/auxiliary/driver_noop/noop_pipe.c
index d1e795dab16..9e39e65b4d0 100644
--- a/src/gallium/auxiliary/driver_noop/noop_pipe.c
+++ b/src/gallium/auxiliary/driver_noop/noop_pipe.c
@@ -307,6 +307,11 @@ static boolean noop_generate_mipmap(struct pipe_context *ctx,
return true;
}
+static void noop_invalidate_resource(struct pipe_context *ctx,
+ struct pipe_resource *resource)
+{
+}
+
static struct pipe_context *noop_create_context(struct pipe_screen *screen,
void *priv, unsigned flags)
{
@@ -345,6 +350,7 @@ static struct pipe_context *noop_create_context(struct pipe_screen *screen,
ctx->transfer_unmap = noop_transfer_unmap;
ctx->buffer_subdata = noop_buffer_subdata;
ctx->texture_subdata = noop_texture_subdata;
+ ctx->invalidate_resource = noop_invalidate_resource;
noop_init_state_functions(ctx);
return ctx;