This is done in preparation for the removal of the ATIVGAState *s parameter.
Signed-off-by: Chad Jablonski <[email protected]> --- hw/display/ati_2d.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/display/ati_2d.c b/hw/display/ati_2d.c index 4216986b6a..8397a4d1bb 100644 --- a/hw/display/ati_2d.c +++ b/hw/display/ati_2d.c @@ -121,12 +121,12 @@ static void setup_2d_blt_ctx(const ATIVGAState *s, ATI2DCtx *ctx) (ctx->top_to_bottom ? 'v' : '^')); } -static void ati_2d_do_blt(ATIVGAState *s, ATI2DCtx *ctx) +static void ati_2d_do_blt(ATIVGAState *s, ATI2DCtx *ctx, uint8_t use_pixman) { /* FIXME it is probably more complex than this and may need to be */ /* rewritten but for now as a start just to get some output: */ - bool use_pixman_fill = s->use_pixman & BIT(0); - bool use_pixman_blt = s->use_pixman & BIT(1); + bool use_pixman_fill = use_pixman & BIT(0); + bool use_pixman_blt = use_pixman & BIT(1); if (!ctx->bpp) { qemu_log_mask(LOG_GUEST_ERROR, "Invalid bpp\n"); return; @@ -277,5 +277,5 @@ void ati_2d_blt(ATIVGAState *s) { ATI2DCtx ctx; setup_2d_blt_ctx(s, &ctx); - ati_2d_do_blt(s, &ctx); + ati_2d_do_blt(s, &ctx, s->use_pixman); } -- 2.52.0
