Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
igt-gpu-tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
56
Issues
56
List
Boards
Labels
Service Desk
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
drm
igt-gpu-tools
Commits
9a4957a1
Commit
9a4957a1
authored
Aug 14, 2013
by
Daniel Vetter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests/gem_concurrent_blt: use the test helpers in the forked tests
Signed-off-by:
Daniel Vetter
<
daniel.vetter@ffwll.ch
>
parent
5a598c9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
33 deletions
+6
-33
tests/gem_concurrent_blit.c
tests/gem_concurrent_blit.c
+6
-33
No files found.
tests/gem_concurrent_blit.c
View file @
9a4957a1
...
...
@@ -293,19 +293,8 @@ run_modes(struct access_mode *mode)
src
[
i
]
=
mode
->
create_bo
(
bufmgr
,
i
,
width
,
height
);
dst
[
i
]
=
mode
->
create_bo
(
bufmgr
,
~
i
,
width
,
height
);
}
for
(
loop
=
0
;
loop
<
10
;
loop
++
)
{
gem_quiescent_gpu
(
fd
);
for
(
i
=
0
;
i
<
num_buffers
;
i
++
)
{
mode
->
set_bo
(
src
[
i
],
i
,
width
,
height
);
mode
->
set_bo
(
dst
[
i
],
i
,
width
,
height
);
}
for
(
i
=
0
;
i
<
num_buffers
;
i
++
)
intel_copy_bo
(
batch
,
dst
[
i
],
src
[
i
],
width
,
height
);
for
(
i
=
num_buffers
;
i
--
;
)
mode
->
set_bo
(
src
[
i
],
0xdeadbeef
,
width
,
height
);
for
(
i
=
0
;
i
<
num_buffers
;
i
++
)
mode
->
cmp_bo
(
dst
[
i
],
i
,
width
,
height
);
}
for
(
loop
=
0
;
loop
<
10
;
loop
++
)
do_overwrite_source
(
mode
,
src
,
dst
,
dummy
);
exit
(
0
);
}
}
...
...
@@ -333,15 +322,8 @@ run_modes(struct access_mode *mode)
src
[
i
]
=
mode
->
create_bo
(
bufmgr
,
i
,
width
,
height
);
dst
[
i
]
=
mode
->
create_bo
(
bufmgr
,
~
i
,
width
,
height
);
}
for
(
loop
=
0
;
loop
<
10
;
loop
++
)
{
gem_quiescent_gpu
(
fd
);
for
(
i
=
num_buffers
;
i
--
;
)
mode
->
set_bo
(
src
[
i
],
0xdeadbeef
,
width
,
height
);
for
(
i
=
0
;
i
<
num_buffers
;
i
++
)
intel_copy_bo
(
batch
,
dst
[
i
],
src
[
i
],
width
,
height
);
for
(
i
=
num_buffers
;
i
--
;
)
mode
->
cmp_bo
(
dst
[
i
],
0xdeadbeef
,
width
,
height
);
}
for
(
loop
=
0
;
loop
<
10
;
loop
++
)
do_early_read
(
mode
,
src
,
dst
,
dummy
);
exit
(
0
);
}
}
...
...
@@ -370,17 +352,8 @@ run_modes(struct access_mode *mode)
dst
[
i
]
=
mode
->
create_bo
(
bufmgr
,
~
i
,
width
,
height
);
}
dummy
=
mode
->
create_bo
(
bufmgr
,
0
,
width
,
height
);
for
(
loop
=
0
;
loop
<
10
;
loop
++
)
{
gem_quiescent_gpu
(
fd
);
for
(
i
=
num_buffers
;
i
--
;
)
mode
->
set_bo
(
src
[
i
],
0xabcdabcd
,
width
,
height
);
for
(
i
=
0
;
i
<
num_buffers
;
i
++
)
intel_copy_bo
(
batch
,
dst
[
i
],
src
[
i
],
width
,
height
);
for
(
i
=
num_buffers
;
i
--
;
)
intel_copy_bo
(
batch
,
dummy
,
dst
[
i
],
width
,
height
);
for
(
i
=
num_buffers
;
i
--
;
)
mode
->
cmp_bo
(
dst
[
i
],
0xabcdabcd
,
width
,
height
);
}
for
(
loop
=
0
;
loop
<
10
;
loop
++
)
do_gpu_read_after_write
(
mode
,
src
,
dst
,
dummy
);
exit
(
0
);
}
}
...
...
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