diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-11-07 22:57:05 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-11-07 22:57:05 +0000 |
commit | e4872225ace7e3b129292f5822aa75b84c52beff (patch) | |
tree | 442a0a6a8149927c8d253cea892b385997bfabb1 /src/sna | |
parent | 5ba8ba7421e36bcdf83e84423595326939dbe7cd (diff) |
sna/io: Minor tidy of setting command flags
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna')
-rw-r--r-- | src/sna/sna_io.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sna/sna_io.c b/src/sna/sna_io.c index 963efb34..cc379011 100644 --- a/src/sna/sna_io.c +++ b/src/sna/sna_io.c @@ -131,8 +131,6 @@ void sna_read_boxes(struct sna *sna, } cmd = XY_SRC_COPY_BLT_CMD; - if (cpp == 4) - cmd |= BLT_WRITE_ALPHA | BLT_WRITE_RGB; src_pitch = src_bo->pitch; if (kgem->gen >= 40 && src_bo->tiling) { cmd |= BLT_SRC_TILED; @@ -142,7 +140,8 @@ void sna_read_boxes(struct sna *sna, br13 = 0xcc << 16; switch (cpp) { default: - case 4: br13 |= 1 << 25; /* RGB8888 */ + case 4: cmd |= BLT_WRITE_ALPHA | BLT_WRITE_RGB; + br13 |= 1 << 25; /* RGB8888 */ case 2: br13 |= 1 << 24; /* RGB565 */ case 1: break; } |