Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marek Olšák
mesa
Commits
db165e9d
Commit
db165e9d
authored
Jul 16, 2020
by
Mike Blumenkrantz
🏋
Committed by
Marge Bot
Dec 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mesa/st: tabs -> spaces in st_program
Reviewed-by:
Marek Olšák
<
marek.olsak@amd.com
>
Part-of: <
mesa/mesa!5885
>
parent
7c302c2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/mesa/state_tracker/st_program.c
src/mesa/state_tracker/st_program.c
+6
-6
No files found.
src/mesa/state_tracker/st_program.c
View file @
db165e9d
...
...
@@ -1691,11 +1691,11 @@ st_get_common_variant(struct st_context *st,
/* create new */
v
=
(
struct
st_variant
*
)
CALLOC_STRUCT
(
st_common_variant
);
if
(
v
)
{
if
(
prog
->
state
.
type
==
PIPE_SHADER_IR_NIR
)
{
if
(
prog
->
state
.
type
==
PIPE_SHADER_IR_NIR
)
{
bool
finalize
=
false
;
state
.
type
=
PIPE_SHADER_IR_NIR
;
state
.
ir
.
nir
=
get_nir_shader
(
st
,
prog
);
state
.
type
=
PIPE_SHADER_IR_NIR
;
state
.
ir
.
nir
=
get_nir_shader
(
st
,
prog
);
if
(
key
->
clamp_color
)
{
NIR_PASS_V
(
state
.
ir
.
nir
,
nir_lower_clamp_color_outputs
);
...
...
@@ -1841,10 +1841,10 @@ destroy_shader_program_variants_cb(void *data, void *userData)
struct
gl_shader_program
*
shProg
=
(
struct
gl_shader_program
*
)
data
;
GLuint
i
;
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
shProg
->
_LinkedShaders
);
i
++
)
{
if
(
shProg
->
_LinkedShaders
[
i
])
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
shProg
->
_LinkedShaders
);
i
++
)
{
if
(
shProg
->
_LinkedShaders
[
i
])
destroy_program_variants
(
st
,
shProg
->
_LinkedShaders
[
i
]
->
Program
);
}
}
}
break
;
case
GL_VERTEX_SHADER
:
...
...
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