intel/blorp_blit: Move RGB=>R conversion to follow blit splitting
authorJordan Justen <jordan.l.justen@intel.com>
Wed, 30 Nov 2016 23:53:48 +0000 (15:53 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Wed, 7 Dec 2016 17:00:49 +0000 (09:00 -0800)
commitefea8e724458f6a388fb70421db3e655719fffb0
tree44c3d2ca72d285f5139e13bf39dd4b804a06bdc8
parentedf3113aeddcf66cb24906e53a2d4f41616f8985
intel/blorp_blit: Move RGB=>R conversion to follow blit splitting

In blorp_copy, when RGB surfaces are copied, we convert the
destination surface to a Red only surface, but 3 times as wide. This
introduces an implicit restriction of "mod 3" for the destination
width.

It is easier to handle the blorp split buffer offsetting with the
original RGB surface, and do the RGB=>R after this.

Suggested-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/blorp/blorp_blit.c