diff options
author | Dave Airlie <airlied@redhat.com> | 2009-11-16 15:29:46 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-12-07 16:33:04 -0500 |
commit | d904ef9b00a4473af16766e99f17bdbb5f0fde65 (patch) | |
tree | e9b5263b223cf5d20f189aad922f79c1ccbfd9c2 /drivers/gpu/drm/radeon/atom.c | |
parent | f84676185368e36c6bc0eeab87ab73ed39042648 (diff) |
drm/radeon/kms: add support to atom parser for FB read/write
FB read/write really doesn't need to access the actual VRAM, we
can just use a scratch area. This is required for using atom displayport
calls later.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/atom.c')
-rw-r--r-- | drivers/gpu/drm/radeon/atom.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/radeon/atom.c b/drivers/gpu/drm/radeon/atom.c index d67c42555ab9..85abc0850e7f 100644 --- a/drivers/gpu/drm/radeon/atom.c +++ b/drivers/gpu/drm/radeon/atom.c | |||
@@ -263,10 +263,10 @@ static uint32_t atom_get_src_int(atom_exec_context *ctx, uint8_t attr, | |||
263 | case ATOM_ARG_FB: | 263 | case ATOM_ARG_FB: |
264 | idx = U8(*ptr); | 264 | idx = U8(*ptr); |
265 | (*ptr)++; | 265 | (*ptr)++; |
266 | val = gctx->scratch[((gctx->fb_base + idx) / 4)]; | ||
266 | if (print) | 267 | if (print) |
267 | DEBUG("FB[0x%02X]", idx); | 268 | DEBUG("FB[0x%02X]", idx); |
268 | printk(KERN_INFO "FB access is not implemented.\n"); | 269 | break; |
269 | return 0; | ||
270 | case ATOM_ARG_IMM: | 270 | case ATOM_ARG_IMM: |
271 | switch (align) { | 271 | switch (align) { |
272 | case ATOM_SRC_DWORD: | 272 | case ATOM_SRC_DWORD: |
@@ -488,9 +488,9 @@ static void atom_put_dst(atom_exec_context *ctx, int arg, uint8_t attr, | |||
488 | case ATOM_ARG_FB: | 488 | case ATOM_ARG_FB: |
489 | idx = U8(*ptr); | 489 | idx = U8(*ptr); |
490 | (*ptr)++; | 490 | (*ptr)++; |
491 | gctx->scratch[((gctx->fb_base + idx) / 4)] = val; | ||
491 | DEBUG("FB[0x%02X]", idx); | 492 | DEBUG("FB[0x%02X]", idx); |
492 | printk(KERN_INFO "FB access is not implemented.\n"); | 493 | break; |
493 | return; | ||
494 | case ATOM_ARG_PLL: | 494 | case ATOM_ARG_PLL: |
495 | idx = U8(*ptr); | 495 | idx = U8(*ptr); |
496 | (*ptr)++; | 496 | (*ptr)++; |