VirtualBox

Changeset 81976 in vbox for trunk/src/VBox/Additions/3D/mesa


Ignore:
Timestamp:
Nov 19, 2019 7:27:12 AM (5 years ago)
Author:
vboxsync
Message:

Additions/3D/mesa: Deal with the coordinate system differences between the SVGA device and gallium utils (finally it works correctly). bugref:8893

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/3D/mesa/mesa-17.3.9/src/gallium/drivers/svga/svga_pipe_blit.c

    r81618 r81976  
    610610
    611611#ifdef VBOX_WITH_MESA3D_NINE_SVGA
     612   debug_printf("svga: blit src lvl %d %dx%d %d,%d %dx%d -> dst lvl %d %dx%d %d,%d %dx%d\n",
     613                blit.src.level, src->width0, src->height0,
     614                blit.src.box.x, blit.src.box.y, blit.src.box.width, blit.src.box.height,
     615                blit.dst.level, dst->width0, dst->height0,
     616                blit.dst.box.x, blit.dst.box.y, blit.dst.box.width, blit.dst.box.height);
    612617   /* Flip Y.
    613618    *
     
    621626   blit.dst.box.y = u_minify(dst->height0, blit.dst.level) - blit.dst.box.y - blit.dst.box.height;
    622627
    623    blit.src.box.y = u_minify(src->height0, blit.src.level) - blit.src.box.y;
     628   /* The source image must be flipped vertically too. */
     629   blit.src.box.y = blit.src.box.y + blit.src.box.height;
    624630   blit.src.box.height = -blit.src.box.height;
    625631#endif
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette