else {
ximage = xms->ximage;
}
-
+
+ /* this could be optimized/simplified */
switch (ps->format) {
case PIPE_FORMAT_U_A8_R8_G8_B8:
if (!dst_stride) {
char *dst;
int i;
+ /* this could be optimized/simplified */
switch (ps->format) {
case PIPE_FORMAT_U_A8_R8_G8_B8:
if (!src_stride) {
XMesaImage *ximage;
uint i, j;
- CLIP_TILE;
-
if (!xms->drawable && !xms->ximage) {
/* not an X surface */
softpipe_put_tile_rgba(pipe, ps, x, y, w, h, p);
return;
}
+ CLIP_TILE;
+
if (!xms->ximage) {
/* create temp XImage */
char *data = (char *) malloc(w * h * 4);