diff options
author | Dave Airlie <airlied@redhat.com> | 2015-10-23 09:34:59 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2015-10-23 11:08:31 +1000 |
commit | 016341850c7f1438299b3436a93effb0eccde1bf (patch) | |
tree | 2ccb28306f48551e09e79f627b4c7ee6bd2d5a2c /tests/testvirgl_encode.h | |
parent | fd8116476b129288bf8fe6ecedc69135dae7b7a1 (diff) |
tests: align viewports/scissor encoding with mesa.
This just realigns some of the encoder code with mesa.
Diffstat (limited to 'tests/testvirgl_encode.h')
-rw-r--r-- | tests/testvirgl_encode.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/testvirgl_encode.h b/tests/testvirgl_encode.h index feb2be8..d717749 100644 --- a/tests/testvirgl_encode.h +++ b/tests/testvirgl_encode.h @@ -102,8 +102,10 @@ int virgl_encode_delete_object(struct virgl_context *ctx, int virgl_encoder_set_framebuffer_state(struct virgl_context *ctx, const struct pipe_framebuffer_state *state); -int virgl_encoder_set_viewport_state(struct virgl_context *ctx, - const struct pipe_viewport_state *state); +int virgl_encoder_set_viewport_states(struct virgl_context *ctx, + int start_slot, + int num_viewports, + const struct pipe_viewport_state *states); int virgl_encoder_draw_vbo(struct virgl_context *ctx, const struct pipe_draw_info *info); @@ -181,7 +183,7 @@ int virgl_encoder_set_blend_color(struct virgl_context *ctx, const struct pipe_blend_color *color); int virgl_encoder_set_scissor_state(struct virgl_context *ctx, - int start_slot, + unsigned start_slot, int num_scissors, const struct pipe_scissor_state *ss); |