Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Erik Faye-Lund
mesa
Commits
7568a80a
Commit
7568a80a
authored
Nov 02, 2020
by
Erik Faye-Lund
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d12: remove special-casing for PNTC
parent
aad34b3a
Pipeline
#222361
waiting for manual action with stages
in 17 minutes and 42 seconds
Changes
1
Pipelines
3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
13 deletions
+4
-13
src/gallium/drivers/d3d12/d3d12_lower_point_sprite.c
src/gallium/drivers/d3d12/d3d12_lower_point_sprite.c
+4
-13
No files found.
src/gallium/drivers/d3d12/d3d12_lower_point_sprite.c
View file @
7568a80a
...
...
@@ -264,23 +264,14 @@ d3d12_lower_point_sprite(nir_shader *shader,
for
(
unsigned
int
sem
=
0
;
sem
<
9
;
sem
++
)
{
if
(
point_coord_enable
&
BITFIELD64_BIT
(
sem
))
{
char
tmp
[
100
];
const
char
*
var_name
;
const
struct
glsl_type
*
var_type
;
unsigned
location
;
unsigned
location
=
VARYING_SLOT_VAR0
+
sem
;
if
(
sem
==
8
)
{
var_name
=
"gl_PointCoord"
;
location
=
VARYING_SLOT_PNTC
;
}
else
{
snprintf
(
tmp
,
ARRAY_SIZE
(
tmp
),
"gl_TexCoord%dMESA"
,
count
);
var_name
=
tmp
;
location
=
VARYING_SLOT_VAR0
+
sem
;
}
nir_variable
*
var
=
nir_variable_create
(
shader
,
nir_var_shader_out
,
glsl_vec4_type
(),
var_name
);
tmp
);
var
->
data
.
location
=
location
;
state
.
point_coord_out
[
count
++
]
=
var
;
}
...
...
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