projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
172e91f
)
drm/radeon/kms/atom: fix shr/shl ops
author
Alex Deucher
<alexdeucher@gmail.com>
Wed, 24 Feb 2010 02:56:12 +0000
(21:56 -0500)
committer
Dave Airlie
<airlied@redhat.com>
Thu, 25 Feb 2010 03:32:06 +0000
(13:32 +1000)
The whole attribute table is valid for
shr/shl ops.
Fixes fdo bug 26668
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Cc: stable@kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/atom.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/radeon/atom.c
b/drivers/gpu/drm/radeon/atom.c
index e3b44562d2654f7ab2c29da917d50a864db736ef..614295a11dfba98c01db70ef30e20f8f950ea8f7 100644
(file)
--- a/
drivers/gpu/drm/radeon/atom.c
+++ b/
drivers/gpu/drm/radeon/atom.c
@@
-878,8
+878,6
@@
static void atom_op_shl(atom_exec_context *ctx, int *ptr, int arg)
uint8_t attr = U8((*ptr)++), shift;
uint32_t saved, dst;
int dptr = *ptr;
- attr &= 0x38;
- attr |= atom_def_dst[attr >> 3] << 6;
SDEBUG(" dst: ");
dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1);
shift = atom_get_src(ctx, attr, ptr);
@@
-894,8
+892,6
@@
static void atom_op_shr(atom_exec_context *ctx, int *ptr, int arg)
uint8_t attr = U8((*ptr)++), shift;
uint32_t saved, dst;
int dptr = *ptr;
- attr &= 0x38;
- attr |= atom_def_dst[attr >> 3] << 6;
SDEBUG(" dst: ");
dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1);
shift = atom_get_src(ctx, attr, ptr);