Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mesa
mesa
Commits
04a57a7e
Commit
04a57a7e
authored
Jul 09, 2015
by
Brian Paul
Browse files
tgsi: whitespace fixes in tgsi_parse.c
Trivial.
parent
1f02a82c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/gallium/auxiliary/tgsi/tgsi_parse.c
View file @
04a57a7e
...
...
@@ -36,7 +36,7 @@ tgsi_parse_init(
const
struct
tgsi_token
*
tokens
)
{
ctx
->
FullHeader
.
Header
=
*
(
struct
tgsi_header
*
)
&
tokens
[
0
];
if
(
ctx
->
FullHeader
.
Header
.
HeaderSize
>=
2
)
{
if
(
ctx
->
FullHeader
.
Header
.
HeaderSize
>=
2
)
{
ctx
->
FullHeader
.
Processor
=
*
(
struct
tgsi_processor
*
)
&
tokens
[
1
];
}
else
{
...
...
@@ -113,11 +113,11 @@ tgsi_parse_token(
next_token
(
ctx
,
&
decl
->
Dim
);
}
if
(
decl
->
Declaration
.
Interpolate
)
{
if
(
decl
->
Declaration
.
Interpolate
)
{
next_token
(
ctx
,
&
decl
->
Interp
);
}
if
(
decl
->
Declaration
.
Semantic
)
{
if
(
decl
->
Declaration
.
Semantic
)
{
next_token
(
ctx
,
&
decl
->
Semantic
);
}
...
...
@@ -129,7 +129,7 @@ tgsi_parse_token(
next_token
(
ctx
,
&
decl
->
SamplerView
);
}
if
(
decl
->
Declaration
.
Array
)
{
if
(
decl
->
Declaration
.
Array
)
{
next_token
(
ctx
,
&
decl
->
Array
);
}
...
...
@@ -190,21 +190,21 @@ tgsi_parse_token(
if
(
inst
->
Instruction
.
Texture
)
{
next_token
(
ctx
,
&
inst
->
Texture
);
for
(
i
=
0
;
i
<
inst
->
Texture
.
NumOffsets
;
i
++
)
{
for
(
i
=
0
;
i
<
inst
->
Texture
.
NumOffsets
;
i
++
)
{
next_token
(
ctx
,
&
inst
->
TexOffsets
[
i
]
);
}
}
assert
(
inst
->
Instruction
.
NumDstRegs
<=
TGSI_FULL_MAX_DST_REGISTERS
);
for
(
i
=
0
;
i
<
inst
->
Instruction
.
NumDstRegs
;
i
++
)
{
for
(
i
=
0
;
i
<
inst
->
Instruction
.
NumDstRegs
;
i
++
)
{
next_token
(
ctx
,
&
inst
->
Dst
[
i
].
Register
);
if
(
inst
->
Dst
[
i
].
Register
.
Indirect
)
if
(
inst
->
Dst
[
i
].
Register
.
Indirect
)
next_token
(
ctx
,
&
inst
->
Dst
[
i
].
Indirect
);
if
(
inst
->
Dst
[
i
].
Register
.
Dimension
)
{
if
(
inst
->
Dst
[
i
].
Register
.
Dimension
)
{
next_token
(
ctx
,
&
inst
->
Dst
[
i
].
Dimension
);
/*
...
...
@@ -212,21 +212,21 @@ tgsi_parse_token(
*/
assert
(
!
inst
->
Dst
[
i
].
Dimension
.
Dimension
);
if
(
inst
->
Dst
[
i
].
Dimension
.
Indirect
)
if
(
inst
->
Dst
[
i
].
Dimension
.
Indirect
)
next_token
(
ctx
,
&
inst
->
Dst
[
i
].
DimIndirect
);
}
}
assert
(
inst
->
Instruction
.
NumSrcRegs
<=
TGSI_FULL_MAX_SRC_REGISTERS
);
for
(
i
=
0
;
i
<
inst
->
Instruction
.
NumSrcRegs
;
i
++
)
{
for
(
i
=
0
;
i
<
inst
->
Instruction
.
NumSrcRegs
;
i
++
)
{
next_token
(
ctx
,
&
inst
->
Src
[
i
].
Register
);
if
(
inst
->
Src
[
i
].
Register
.
Indirect
)
if
(
inst
->
Src
[
i
].
Register
.
Indirect
)
next_token
(
ctx
,
&
inst
->
Src
[
i
].
Indirect
);
if
(
inst
->
Src
[
i
].
Register
.
Dimension
)
{
if
(
inst
->
Src
[
i
].
Register
.
Dimension
)
{
next_token
(
ctx
,
&
inst
->
Src
[
i
].
Dimension
);
/*
...
...
@@ -234,7 +234,7 @@ tgsi_parse_token(
*/
assert
(
!
inst
->
Src
[
i
].
Dimension
.
Dimension
);
if
(
inst
->
Src
[
i
].
Dimension
.
Indirect
)
if
(
inst
->
Src
[
i
].
Dimension
.
Indirect
)
next_token
(
ctx
,
&
inst
->
Src
[
i
].
DimIndirect
);
}
}
...
...
Bugzilla Migration User
@bugzilla-migration
mentioned in issue
#318 (closed)
·
Sep 18, 2019
mentioned in issue
#318 (closed)
mentioned in issue #318
Toggle commit list
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