Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
a0fd9b9f
Commit
a0fd9b9f
authored
Nov 26, 2010
by
Ben Skeggs
Committed by
Francisco Jerez
Dec 08, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau: no need to zero dma objects, we fill them completely anyway
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
12fb9525
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
drivers/gpu/drm/nouveau/nouveau_object.c
drivers/gpu/drm/nouveau/nouveau_object.c
+2
-5
No files found.
drivers/gpu/drm/nouveau/nouveau_object.c
View file @
a0fd9b9f
...
...
@@ -460,8 +460,7 @@ nv50_gpuobj_dma_new(struct nouveau_channel *chan, int class, u64 base, u64 size,
struct
drm_device
*
dev
=
chan
->
dev
;
int
ret
;
ret
=
nouveau_gpuobj_new
(
dev
,
chan
,
24
,
16
,
NVOBJ_FLAG_ZERO_ALLOC
|
NVOBJ_FLAG_ZERO_FREE
,
pobj
);
ret
=
nouveau_gpuobj_new
(
dev
,
chan
,
24
,
16
,
NVOBJ_FLAG_ZERO_FREE
,
pobj
);
if
(
ret
)
return
ret
;
...
...
@@ -536,9 +535,7 @@ nouveau_gpuobj_dma_new(struct nouveau_channel *chan, int class, u64 base,
flags0
|=
(
base
&
0x00000fff
)
<<
20
;
flags2
|=
(
base
&
0xfffff000
);
ret
=
nouveau_gpuobj_new
(
dev
,
chan
,
(
dev_priv
->
card_type
>=
NV_40
)
?
32
:
16
,
16
,
NVOBJ_FLAG_ZERO_ALLOC
|
NVOBJ_FLAG_ZERO_FREE
,
&
obj
);
ret
=
nouveau_gpuobj_new
(
dev
,
chan
,
16
,
16
,
NVOBJ_FLAG_ZERO_FREE
,
&
obj
);
if
(
ret
)
return
ret
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment