summaryrefslogtreecommitdiff
path: root/src/sna/sna_io.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-11-30 12:12:49 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-11-30 12:12:49 +0000
commit5d6dd9c5a7eeb1f879525430ad89ab74d427e469 (patch)
treea86af90e179fa901d56209aeb939dd338d6afaca /src/sna/sna_io.c
parent131600020638ef15166361214cd5e1a0c08c2ea6 (diff)
Convert generation counter to octal
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_io.c')
-rw-r--r--src/sna/sna_io.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sna/sna_io.c b/src/sna/sna_io.c
index 2038e5df..bb7f9f9d 100644
--- a/src/sna/sna_io.c
+++ b/src/sna/sna_io.c
@@ -364,7 +364,7 @@ fallback:
cmd = XY_SRC_COPY_BLT_CMD;
src_pitch = src_bo->pitch;
- if (kgem->gen >= 40 && src_bo->tiling) {
+ if (kgem->gen >= 040 && src_bo->tiling) {
cmd |= BLT_SRC_TILED;
src_pitch >>= 2;
}
@@ -483,7 +483,7 @@ fallback:
static bool upload_inplace__tiled(struct kgem *kgem, struct kgem_bo *bo)
{
- if (kgem->gen < 50) /* bit17 swizzling :( */
+ if (kgem->gen < 050) /* bit17 swizzling :( */
return false;
if (bo->tiling != I915_TILING_X)
@@ -811,7 +811,7 @@ tile:
cmd = XY_SRC_COPY_BLT_CMD;
br13 = dst_bo->pitch;
- if (kgem->gen >= 40 && dst_bo->tiling) {
+ if (kgem->gen >= 040 && dst_bo->tiling) {
cmd |= BLT_DST_TILED;
br13 >>= 2;
}
@@ -1180,7 +1180,7 @@ tile:
cmd = XY_SRC_COPY_BLT_CMD;
br13 = dst_bo->pitch;
- if (kgem->gen >= 40 && dst_bo->tiling) {
+ if (kgem->gen >= 040 && dst_bo->tiling) {
cmd |= BLT_DST_TILED;
br13 >>= 2;
}