mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
radv: program a default point size.
Along the lines of what3b804819anv: Default PointSize to 1.0 if not written by the shader does for anv, program a default point size in the hw of 1.0. This preempt fixes a bunch of geom shader tests. Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Cc: "17.0" <mesa-stable@lists.freedesktop.org> Signed-off-by: Dave Airlie <airlied@redhat.com> (cherry picked from commit2ab2be092d)
This commit is contained in:
parent
651861d862
commit
c63652b8ac
1 changed files with 2 additions and 1 deletions
|
|
@ -438,7 +438,8 @@ radv_emit_graphics_raster_state(struct radv_cmd_buffer *cmd_buffer,
|
|||
raster->spi_interp_control);
|
||||
|
||||
radeon_set_context_reg_seq(cmd_buffer->cs, R_028A00_PA_SU_POINT_SIZE, 2);
|
||||
radeon_emit(cmd_buffer->cs, 0);
|
||||
unsigned tmp = (unsigned)(1.0 * 8.0);
|
||||
radeon_emit(cmd_buffer->cs, S_028A00_HEIGHT(tmp) | S_028A00_WIDTH(tmp));
|
||||
radeon_emit(cmd_buffer->cs, S_028A04_MIN_SIZE(radv_pack_float_12p4(0)) |
|
||||
S_028A04_MAX_SIZE(radv_pack_float_12p4(8192/2))); /* R_028A04_PA_SU_POINT_MINMAX */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue