summaryrefslogtreecommitdiff
path: root/src/sna/sna_video.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_video.c
parent131600020638ef15166361214cd5e1a0c08c2ea6 (diff)
Convert generation counter to octal
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_video.c')
-rw-r--r--src/sna/sna_video.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sna/sna_video.c b/src/sna/sna_video.c
index 7bf20e96..43454549 100644
--- a/src/sna/sna_video.c
+++ b/src/sna/sna_video.c
@@ -197,12 +197,12 @@ sna_video_frame_init(struct sna *sna,
if (video->textured) {
align = 4;
} else {
- if (sna->kgem.gen >= 40)
+ if (sna->kgem.gen >= 040)
/* Actually the alignment is 64 bytes, too. But the
* stride must be at least 512 bytes. Take the easy fix
* and align on 512 bytes unconditionally. */
align = 512;
- else if (sna->kgem.gen < 21)
+ else if (sna->kgem.gen < 021)
/* Harsh, errata on these chipsets limit the stride
* to be a multiple of 256 bytes.
*/
@@ -213,7 +213,7 @@ sna_video_frame_init(struct sna *sna,
#if SNA_XVMC
/* for i915 xvmc, hw requires 1kb aligned surfaces */
- if (id == FOURCC_XVMC && sna->kgem.gen < 40)
+ if (id == FOURCC_XVMC && sna->kgem.gen < 040)
align = 1024;
#endif