mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 03:20:09 +01:00
v3dv/cmd_buffer: emit CLIPPER_XY_SCALING for v71
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25450>
This commit is contained in:
parent
e2eed3fff6
commit
0fdd9ea9bc
1 changed files with 4 additions and 3 deletions
|
|
@ -1246,9 +1246,7 @@ v3dX(cmd_buffer_emit_viewport)(struct v3dv_cmd_buffer *cmd_buffer)
|
|||
* now, would need to change if we allow multiple viewports
|
||||
*/
|
||||
float *vptranslate = dynamic->viewport.translate[0];
|
||||
#if V3D_VERSION == 42
|
||||
float *vpscale = dynamic->viewport.scale[0];
|
||||
#endif
|
||||
|
||||
struct v3dv_job *job = cmd_buffer->state.job;
|
||||
assert(job);
|
||||
|
|
@ -1268,7 +1266,10 @@ v3dX(cmd_buffer_emit_viewport)(struct v3dv_cmd_buffer *cmd_buffer)
|
|||
}
|
||||
#endif
|
||||
#if V3D_VERSION >= 71
|
||||
unreachable("HW generation 71 not supported yet.");
|
||||
cl_emit(&job->bcl, CLIPPER_XY_SCALING, clip) {
|
||||
clip.viewport_half_width_in_1_64th_of_pixel = vpscale[0] * 64.0f;
|
||||
clip.viewport_half_height_in_1_64th_of_pixel = vpscale[1] * 64.0f;
|
||||
}
|
||||
#endif
|
||||
|
||||
float translate_z, scale_z;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue