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
Kirill Smelkov
linux
Commits
aeca15e5
Commit
aeca15e5
authored
Dec 16, 2009
by
Francisco Jerez
Committed by
Dave Airlie
Jan 11, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau: Drop redundant placement initialization.
Signed-off-by:
Francisco Jerez
<
currojerez@riseup.net
>
parent
69a18c32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/nouveau/nouveau_bo.c
+2
-10
No files found.
drivers/gpu/drm/nouveau/nouveau_bo.c
View file @
aeca15e5
...
...
@@ -130,7 +130,7 @@ nouveau_bo_new(struct drm_device *dev, struct nouveau_channel *chan,
{
struct
drm_nouveau_private
*
dev_priv
=
dev
->
dev_private
;
struct
nouveau_bo
*
nvbo
;
int
ret
,
n
=
0
;
int
ret
=
0
;
nvbo
=
kzalloc
(
sizeof
(
struct
nouveau_bo
),
GFP_KERNEL
);
if
(
!
nvbo
)
...
...
@@ -145,19 +145,11 @@ nouveau_bo_new(struct drm_device *dev, struct nouveau_channel *chan,
nouveau_bo_fixup_align
(
dev
,
tile_mode
,
tile_flags
,
&
align
,
&
size
);
align
>>=
PAGE_SHIFT
;
if
(
flags
&
TTM_PL_FLAG_VRAM
)
nvbo
->
placements
[
n
++
]
=
TTM_PL_FLAG_VRAM
|
TTM_PL_MASK_CACHING
;
if
(
flags
&
TTM_PL_FLAG_TT
)
nvbo
->
placements
[
n
++
]
=
TTM_PL_FLAG_TT
|
TTM_PL_MASK_CACHING
;
nvbo
->
placement
.
fpfn
=
0
;
nvbo
->
placement
.
lpfn
=
mappable
?
dev_priv
->
fb_mappable_pages
:
0
;
nvbo
->
placement
.
placement
=
nvbo
->
placements
;
nvbo
->
placement
.
busy_placement
=
nvbo
->
placements
;
nvbo
->
placement
.
num_placement
=
n
;
nvbo
->
placement
.
num_busy_placement
=
n
;
nouveau_bo_placement_set
(
nvbo
,
flags
);
nvbo
->
channel
=
chan
;
nouveau_bo_placement_set
(
nvbo
,
flags
);
ret
=
ttm_bo_init
(
&
dev_priv
->
ttm
.
bdev
,
&
nvbo
->
bo
,
size
,
ttm_bo_type_device
,
&
nvbo
->
placement
,
align
,
0
,
false
,
NULL
,
size
,
nouveau_bo_del_ttm
);
...
...
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