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
Erik Faye-Lund
mesa
Commits
1d9d99ad
Commit
1d9d99ad
authored
Aug 28, 2020
by
Jesse Natalie
Committed by
Erik Faye-Lund
Oct 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clover/nir: Deal with kernel inputs as uniforms instead of shader_in
parent
6d03a7f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/gallium/state_trackers/clover/nir/invocation.cpp
src/gallium/state_trackers/clover/nir/invocation.cpp
+2
-2
No files found.
src/gallium/state_trackers/clover/nir/invocation.cpp
View file @
1d9d99ad
...
...
@@ -147,7 +147,7 @@ module clover::nir::spirv_to_nir(const module &mod, const device &dev,
// Calculate input offsets.
unsigned
offset
=
0
;
nir_foreach_variable_safe
(
var
,
&
nir
->
input
s
)
{
nir_foreach_variable_safe
(
var
,
&
nir
->
uniform
s
)
{
offset
=
align
(
offset
,
glsl_get_cl_alignment
(
var
->
type
));
var
->
data
.
driver_location
=
offset
;
offset
+=
glsl_get_cl_size
(
var
->
type
);
...
...
@@ -205,7 +205,7 @@ module clover::nir::spirv_to_nir(const module &mod, const device &dev,
glsl_get_cl_type_size_align
);
/* use offsets for kernel inputs (uniform) */
NIR_PASS_V
(
nir
,
nir_lower_explicit_io
,
nir_var_
shader_in
,
NIR_PASS_V
(
nir
,
nir_lower_explicit_io
,
nir_var_
uniform
,
nir
->
info
.
cs
.
ptr_size
==
64
?
nir_address_format_32bit_offset_as_64bit
:
nir_address_format_32bit_offset
);
...
...
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