r600: update vertex emit_varying_pos

This change adds a minimal support for gl_PointSize to
be used alongside gl_ClipDistance/gl_CullDistance.

This change was tested on palm and cayman. Here is the test fixed:
khr-gl4[5-6]/gl_spirv/spirv_validation_builtin_variable_decorations_test: fail pass

Cc: mesa-stable
Signed-off-by: Patrick Lerda <patrick9876@free.fr>
(cherry picked from commit 032a2bdc1e)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41269>
This commit is contained in:
Patrick Lerda 2026-03-30 12:43:08 +02:00 committed by Eric Engestrom
parent c785514d5e
commit af76112ed9
2 changed files with 2 additions and 2 deletions

View file

@ -4294,7 +4294,7 @@
"description": "r600: update vertex emit_varying_pos",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -231,7 +231,7 @@ VertexExportForFs::emit_varying_pos(const store_loc& store_info,
<< (4 * (store_info.location - VARYING_SLOT_CLIP_DIST0));
m_clip_dist_write |= write_mask
<< (4 * (store_info.location - VARYING_SLOT_CLIP_DIST0));
export_slot = m_cur_clip_pos++;
export_slot = m_cur_clip_pos++ + (m_out_point_size ? 1 : 0);
break;
default:
sfn_log << SfnLog::err << __func__ << "Unsupported location " << store_info.location