OSDN Git Service

st/mesa: rework blit_copy_pixels to use pipe->blit
authorMarek Olšák <maraeo@gmail.com>
Thu, 30 May 2013 19:34:06 +0000 (21:34 +0200)
committerMarek Olšák <maraeo@gmail.com>
Thu, 13 Jun 2013 01:54:13 +0000 (03:54 +0200)
commit79e421260a2caf18cd5f11514b3439d9846c743e
tree2e40eaaab3c42d65d3ae48c91135e13d37d54965
parent4d59258856a3601fb7fbb4c4d80f64491f0cb5c7
st/mesa: rework blit_copy_pixels to use pipe->blit

There were 2 issues with it:
- resource_copy_region doesn't allow different sample counts of both src
  and dst, which can occur if we blit between a window and a FBO, and
  the window has an MSAA colorbuffer and the FBO doesn't.
  (this was the main motivation for using pipe->blit)
- blitting from or to a non-zero layer/slice/face was broken, because
  rtt_face and rtt_slice were ignored.

blit_copy_pixels is now used even if the formats and orientation of
framebuffers don't match.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_cb_drawpixels.c