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
5d97eb69
Commit
5d97eb69
authored
Nov 10, 2010
by
Chris Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/i915: Only add the lazy request if we end up waiting for it.
Signed-off-by:
Chris Wilson
<
chris@chris-wilson.co.uk
>
parent
33d23237
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem.c
+3
-6
drivers/gpu/drm/i915/intel_ringbuffer.h
drivers/gpu/drm/i915/intel_ringbuffer.h
+1
-1
No files found.
drivers/gpu/drm/i915/i915_gem.c
View file @
5d97eb69
...
...
@@ -1664,9 +1664,7 @@ i915_gem_next_request_seqno(struct drm_device *dev,
struct
intel_ring_buffer
*
ring
)
{
drm_i915_private_t
*
dev_priv
=
dev
->
dev_private
;
ring
->
outstanding_lazy_request
=
true
;
return
dev_priv
->
next_seqno
;
return
ring
->
outstanding_lazy_request
=
dev_priv
->
next_seqno
;
}
static
void
...
...
@@ -2072,7 +2070,7 @@ i915_do_wait_request(struct drm_device *dev, uint32_t seqno,
if
(
atomic_read
(
&
dev_priv
->
mm
.
wedged
))
return
-
EAGAIN
;
if
(
ring
->
outstanding_lazy_request
)
{
if
(
seqno
==
ring
->
outstanding_lazy_request
)
{
struct
drm_i915_gem_request
*
request
;
request
=
kzalloc
(
sizeof
(
*
request
),
GFP_KERNEL
);
...
...
@@ -2087,7 +2085,6 @@ i915_do_wait_request(struct drm_device *dev, uint32_t seqno,
seqno
=
request
->
seqno
;
}
BUG_ON
(
seqno
==
dev_priv
->
next_seqno
);
if
(
!
i915_seqno_passed
(
ring
->
get_seqno
(
ring
),
seqno
))
{
if
(
HAS_PCH_SPLIT
(
dev
))
...
...
@@ -3973,7 +3970,7 @@ i915_gem_do_execbuffer(struct drm_device *dev, void *data,
i915_retire_commands
(
dev
,
ring
);
if
(
i915_add_request
(
dev
,
file
,
request
,
ring
))
ring
->
outstanding_lazy_request
=
true
;
i915_gem_next_request_seqno
(
dev
,
ring
)
;
else
request
=
NULL
;
...
...
drivers/gpu/drm/i915/intel_ringbuffer.h
View file @
5d97eb69
...
...
@@ -87,7 +87,7 @@ struct intel_ring_buffer {
/**
* Do we have some not yet emitted requests outstanding?
*/
bool
outstanding_lazy_request
;
u32
outstanding_lazy_request
;
wait_queue_head_t
irq_queue
;
drm_local_map_t
map
;
...
...
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