panfrost: Only flip point sprites for GL
Fixes dEQP-VK.glsl.builtin_var.simple.pointcoord Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16204>
This commit is contained in:
committed by
Marge Bot
parent
ba29cdecab
commit
db7d8519f9
@@ -4357,6 +4357,14 @@ prepare_shader(struct panfrost_shader_state *state,
|
||||
|
||||
pan_pack(out, RENDERER_STATE, cfg) {
|
||||
pan_shader_prepare_rsd(&state->info, state->bin.gpu, &cfg);
|
||||
|
||||
#if PAN_ARCH >= 6
|
||||
/* Match the mesa/st convention. If this needs to be flipped,
|
||||
* nir_lower_pntc_ytransform will do so.
|
||||
*/
|
||||
if (state->info.stage == MESA_SHADER_FRAGMENT)
|
||||
cfg.properties.point_sprite_coord_origin_max_y = true;
|
||||
#endif
|
||||
}
|
||||
#else
|
||||
assert(upload);
|
||||
|
||||
@@ -16,6 +16,7 @@ include = [
|
||||
"dEQP-VK.glsl.builtin.function.*",
|
||||
"dEQP-VK.glsl.builtin.precision.frexp.*",
|
||||
"dEQP-VK.glsl.builtin.precision.ldexp.*",
|
||||
"dEQP-VK.glsl.builtin_var.*",
|
||||
"dEQP-VK.glsl.conversions.*",
|
||||
"dEQP-VK.glsl.derivate.*.constant.*",
|
||||
"dEQP-VK.glsl.derivate.*.linear.*",
|
||||
|
||||
@@ -237,10 +237,6 @@ pan_shader_prepare_bifrost_rsd(const struct pan_shader_info *info,
|
||||
rsd->properties.shader_modifies_coverage =
|
||||
info->fs.writes_coverage || info->fs.can_discard;
|
||||
|
||||
/* Match the mesa/st convention. If this needs to be flipped,
|
||||
* nir_lower_pntc_ytransform will do so. */
|
||||
rsd->properties.point_sprite_coord_origin_max_y = true;
|
||||
|
||||
rsd->properties.allow_forward_pixel_to_be_killed =
|
||||
!info->fs.sidefx;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user