diff options
author | Dave Airlie <[email protected]> | 2010-05-26 11:45:32 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2010-05-26 11:45:32 +1000 |
commit | 15496e06b7fa1671016d1596a233ec7f58f1eb46 (patch) | |
tree | 69339babcf3b3cd16218f972fafbe6b8c1a81cc2 /src | |
parent | e6a8513a86f43d9b339a10c72dcb8fb88ffbb2aa (diff) |
rbug: add set sample mask passthrough.
This at least stops rbug segfaulting at startup.
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/rbug/rbug_context.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/drivers/rbug/rbug_context.c b/src/gallium/drivers/rbug/rbug_context.c index 7e032c64e73..bb7d13bfcd2 100644 --- a/src/gallium/drivers/rbug/rbug_context.c +++ b/src/gallium/drivers/rbug/rbug_context.c @@ -751,6 +751,17 @@ rbug_set_vertex_buffers(struct pipe_context *_pipe, num_buffers, buffers); } + +static void +rbug_set_sample_mask(struct pipe_context *_pipe, + unsigned sample_mask) +{ + struct rbug_context *rb_pipe = rbug_context(_pipe); + struct pipe_context *pipe = rb_pipe->pipe; + + pipe->set_sample_mask(pipe, sample_mask); +} + static void rbug_resource_copy_region(struct pipe_context *_pipe, struct pipe_resource *_dst, @@ -1062,6 +1073,7 @@ rbug_context_create(struct pipe_screen *_screen, struct pipe_context *pipe) rb_pipe->base.set_fragment_sampler_views = rbug_set_fragment_sampler_views; rb_pipe->base.set_vertex_sampler_views = rbug_set_vertex_sampler_views; rb_pipe->base.set_vertex_buffers = rbug_set_vertex_buffers; + rb_pipe->base.set_sample_mask = rbug_set_sample_mask; rb_pipe->base.resource_copy_region = rbug_resource_copy_region; rb_pipe->base.resource_fill_region = rbug_resource_fill_region; rb_pipe->base.clear = rbug_clear; |