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
aad34b3a
Commit
aad34b3a
authored
Apr 23, 2020
by
Connor Abbott
Committed by
Erik Faye-Lund
Nov 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ir3: Remove VARYING_SLOT_PNTC remapping hack
The st now does this for us. Part-of: <
mesa/mesa!4732
>
parent
eabb94f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
src/freedreno/ir3/ir3_compiler_nir.c
src/freedreno/ir3/ir3_compiler_nir.c
+0
-12
No files found.
src/freedreno/ir3/ir3_compiler_nir.c
View file @
aad34b3a
...
...
@@ -2962,18 +2962,6 @@ setup_input(struct ir3_context *ctx, nir_variable *in)
if
(
slot
==
VARYING_SLOT_POS
)
{
ir3_context_error
(
ctx
,
"fragcoord should be a sysval!
\n
"
);
}
else
if
(
slot
==
VARYING_SLOT_PNTC
)
{
/* see for example st_nir_fixup_varying_slots().. this is
* maybe a bit mesa/st specific. But we need things to line
* up for this in fdN_program:
* unsigned texmask = 1 << (slot - VARYING_SLOT_VAR0);
* if (emit->sprite_coord_enable & texmask) {
* ...
* }
*/
so
->
inputs
[
n
].
slot
=
VARYING_SLOT_VAR8
;
so
->
inputs
[
n
].
bary
=
true
;
instr
=
create_frag_input
(
ctx
,
false
,
idx
);
}
else
{
/* detect the special case for front/back colors where
* we need to do flat vs smooth shading depending on
...
...
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