diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2013-06-25 07:16:35 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-07-01 05:14:53 -0400 |
commit | 921c3b677bf6340cd92800fb99350532674dea29 (patch) | |
tree | 0eac63f1c37c602df283c3bc48041e1424835af2 | |
parent | 2af2c4909b7c8bc76beef25941b2218b3bd8e4fc (diff) |
drm/i915: Fix VLV sprite register offsets
We forgot to add VLV_DISPLAY_BASE to the VLV sprite registers, which
caused the sprites to not work at all.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | drivers/gpu/drm/i915/i915_reg.h | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index b6f1fd988df5..e1df06d1917f 100644 --- a/drivers/gpu/drm/i915/i915_reg.h +++ b/drivers/gpu/drm/i915/i915_reg.h | |||
@@ -3487,7 +3487,7 @@ | |||
3487 | #define SPRGAMC(pipe) _PIPE(pipe, _SPRA_GAMC, _SPRB_GAMC) | 3487 | #define SPRGAMC(pipe) _PIPE(pipe, _SPRA_GAMC, _SPRB_GAMC) |
3488 | #define SPRSURFLIVE(pipe) _PIPE(pipe, _SPRA_SURFLIVE, _SPRB_SURFLIVE) | 3488 | #define SPRSURFLIVE(pipe) _PIPE(pipe, _SPRA_SURFLIVE, _SPRB_SURFLIVE) |
3489 | 3489 | ||
3490 | #define _SPACNTR 0x72180 | 3490 | #define _SPACNTR (VLV_DISPLAY_BASE + 0x72180) |
3491 | #define SP_ENABLE (1<<31) | 3491 | #define SP_ENABLE (1<<31) |
3492 | #define SP_GEAMMA_ENABLE (1<<30) | 3492 | #define SP_GEAMMA_ENABLE (1<<30) |
3493 | #define SP_PIXFORMAT_MASK (0xf<<26) | 3493 | #define SP_PIXFORMAT_MASK (0xf<<26) |
@@ -3506,30 +3506,30 @@ | |||
3506 | #define SP_YUV_ORDER_YVYU (2<<16) | 3506 | #define SP_YUV_ORDER_YVYU (2<<16) |
3507 | #define SP_YUV_ORDER_VYUY (3<<16) | 3507 | #define SP_YUV_ORDER_VYUY (3<<16) |
3508 | #define SP_TILED (1<<10) | 3508 | #define SP_TILED (1<<10) |
3509 | #define _SPALINOFF 0x72184 | 3509 | #define _SPALINOFF (VLV_DISPLAY_BASE + 0x72184) |
3510 | #define _SPASTRIDE 0x72188 | 3510 | #define _SPASTRIDE (VLV_DISPLAY_BASE + 0x72188) |
3511 | #define _SPAPOS 0x7218c | 3511 | #define _SPAPOS (VLV_DISPLAY_BASE + 0x7218c) |
3512 | #define _SPASIZE 0x72190 | 3512 | #define _SPASIZE (VLV_DISPLAY_BASE + 0x72190) |
3513 | #define _SPAKEYMINVAL 0x72194 | 3513 | #define _SPAKEYMINVAL (VLV_DISPLAY_BASE + 0x72194) |
3514 | #define _SPAKEYMSK 0x72198 | 3514 | #define _SPAKEYMSK (VLV_DISPLAY_BASE + 0x72198) |
3515 | #define _SPASURF 0x7219c | 3515 | #define _SPASURF (VLV_DISPLAY_BASE + 0x7219c) |
3516 | #define _SPAKEYMAXVAL 0x721a0 | 3516 | #define _SPAKEYMAXVAL (VLV_DISPLAY_BASE + 0x721a0) |
3517 | #define _SPATILEOFF 0x721a4 | 3517 | #define _SPATILEOFF (VLV_DISPLAY_BASE + 0x721a4) |
3518 | #define _SPACONSTALPHA 0x721a8 | 3518 | #define _SPACONSTALPHA (VLV_DISPLAY_BASE + 0x721a8) |
3519 | #define _SPAGAMC 0x721f4 | 3519 | #define _SPAGAMC (VLV_DISPLAY_BASE + 0x721f4) |
3520 | 3520 | ||
3521 | #define _SPBCNTR 0x72280 | 3521 | #define _SPBCNTR (VLV_DISPLAY_BASE + 0x72280) |
3522 | #define _SPBLINOFF 0x72284 | 3522 | #define _SPBLINOFF (VLV_DISPLAY_BASE + 0x72284) |
3523 | #define _SPBSTRIDE 0x72288 | 3523 | #define _SPBSTRIDE (VLV_DISPLAY_BASE + 0x72288) |
3524 | #define _SPBPOS 0x7228c | 3524 | #define _SPBPOS (VLV_DISPLAY_BASE + 0x7228c) |
3525 | #define _SPBSIZE 0x72290 | 3525 | #define _SPBSIZE (VLV_DISPLAY_BASE + 0x72290) |
3526 | #define _SPBKEYMINVAL 0x72294 | 3526 | #define _SPBKEYMINVAL (VLV_DISPLAY_BASE + 0x72294) |
3527 | #define _SPBKEYMSK 0x72298 | 3527 | #define _SPBKEYMSK (VLV_DISPLAY_BASE + 0x72298) |
3528 | #define _SPBSURF 0x7229c | 3528 | #define _SPBSURF (VLV_DISPLAY_BASE + 0x7229c) |
3529 | #define _SPBKEYMAXVAL 0x722a0 | 3529 | #define _SPBKEYMAXVAL (VLV_DISPLAY_BASE + 0x722a0) |
3530 | #define _SPBTILEOFF 0x722a4 | 3530 | #define _SPBTILEOFF (VLV_DISPLAY_BASE + 0x722a4) |
3531 | #define _SPBCONSTALPHA 0x722a8 | 3531 | #define _SPBCONSTALPHA (VLV_DISPLAY_BASE + 0x722a8) |
3532 | #define _SPBGAMC 0x722f4 | 3532 | #define _SPBGAMC (VLV_DISPLAY_BASE + 0x722f4) |
3533 | 3533 | ||
3534 | #define SPCNTR(pipe, plane) _PIPE(pipe * 2 + plane, _SPACNTR, _SPBCNTR) | 3534 | #define SPCNTR(pipe, plane) _PIPE(pipe * 2 + plane, _SPACNTR, _SPBCNTR) |
3535 | #define SPLINOFF(pipe, plane) _PIPE(pipe * 2 + plane, _SPALINOFF, _SPBLINOFF) | 3535 | #define SPLINOFF(pipe, plane) _PIPE(pipe * 2 + plane, _SPALINOFF, _SPBLINOFF) |