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
M
mesa
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Panfrost
mesa
Commits
3e165ba6
Commit
3e165ba6
authored
Sep 05, 2012
by
Eric Anholt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i965: Test instruction compaction on gen7
parent
bce72170
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
10 deletions
+23
-10
src/mesa/drivers/dri/i965/brw_eu_compact.c
src/mesa/drivers/dri/i965/brw_eu_compact.c
+2
-1
src/mesa/drivers/dri/i965/test_eu_compact.c
src/mesa/drivers/dri/i965/test_eu_compact.c
+21
-9
No files found.
src/mesa/drivers/dri/i965/brw_eu_compact.c
View file @
3e165ba6
...
...
@@ -582,7 +582,8 @@ void brw_debug_compact_uncompact(struct intel_context *intel,
struct
brw_instruction
*
orig
,
struct
brw_instruction
*
uncompacted
)
{
fprintf
(
stderr
,
"Instruction compact/uncompact changed:
\n
"
);
fprintf
(
stderr
,
"Instruction compact/uncompact changed (gen%d):
\n
"
,
intel
->
gen
);
fprintf
(
stderr
,
" before: "
);
brw_disasm
(
stderr
,
orig
,
intel
->
gen
);
...
...
src/mesa/drivers/dri/i965/test_eu_compact.c
View file @
3e165ba6
...
...
@@ -256,13 +256,10 @@ struct {
{
gen_f1_MOV_GRF_GRF
},
};
int
main
(
int
argc
,
char
**
argv
)
static
bool
run_tests
(
struct
brw_context
*
brw
)
{
struct
brw_context
*
brw
=
calloc
(
1
,
sizeof
(
*
brw
));
struct
intel_context
*
intel
=
&
brw
->
intel
;
intel
->
gen
=
6
;
int
ret
=
0
;
bool
fail
=
false
;
for
(
int
i
=
0
;
i
<
ARRAY_SIZE
(
tests
);
i
++
)
{
for
(
int
align_16
=
0
;
align_16
<=
1
;
align_16
++
)
{
...
...
@@ -279,12 +276,12 @@ main(int argc, char **argv)
assert
(
p
->
nr_insn
==
1
);
if
(
!
test_compact_instruction
(
p
,
p
->
store
[
0
]))
{
ret
=
1
;
fail
=
true
;
continue
;
}
if
(
!
test_fuzz_compact_instruction
(
p
,
p
->
store
[
0
]))
{
ret
=
1
;
fail
=
true
;
continue
;
}
...
...
@@ -292,5 +289,20 @@ main(int argc, char **argv)
}
}
return
ret
;
return
fail
;
}
int
main
(
int
argc
,
char
**
argv
)
{
struct
brw_context
*
brw
=
calloc
(
1
,
sizeof
(
*
brw
));
struct
intel_context
*
intel
=
&
brw
->
intel
;
intel
->
gen
=
6
;
bool
fail
=
false
;
for
(
intel
->
gen
=
6
;
intel
->
gen
<=
7
;
intel
->
gen
++
)
{
fail
|=
run_tests
(
brw
);
}
return
fail
;
}
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