summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/noop
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-02-09 01:10:11 +0100
committerMarek Olšák <[email protected]>2011-02-14 21:50:08 +0100
commit588fa884d212eba5ffbc69fda75db37d7c77214c (patch)
treef4dc1e90823d07aa1be7bfadc3376599dbf459e3 /src/gallium/drivers/noop
parent2a904fd6a0cb80eec6dec2bae07fd8778b04caf3 (diff)
gallium: notify drivers about possible changes in user buffer contents
Also implement the redefine_user_buffer hook in the drivers.
Diffstat (limited to 'src/gallium/drivers/noop')
-rw-r--r--src/gallium/drivers/noop/noop_state.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/noop/noop_state.c b/src/gallium/drivers/noop/noop_state.c
index ad324774c03..00a4c1eb01e 100644
--- a/src/gallium/drivers/noop/noop_state.c
+++ b/src/gallium/drivers/noop/noop_state.c
@@ -28,6 +28,7 @@
#include <pipe/p_screen.h>
#include <util/u_memory.h>
#include <util/u_inlines.h>
+#include "util/u_transfer.h"
static void noop_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info *info)
{
@@ -287,4 +288,5 @@ void noop_init_state_functions(struct pipe_context *ctx)
ctx->sampler_view_destroy = noop_sampler_view_destroy;
ctx->surface_destroy = noop_surface_destroy;
ctx->draw_vbo = noop_draw_vbo;
+ ctx->redefine_user_buffer = u_default_redefine_user_buffer;
}