mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-24 21:10:24 +01:00
radeonsi: deduce rast_prim correctly for tessellation point mode
Together with the previous patches, this fixes
dEQP-GLES31.functional.primitive_bounding_box.wide_points.*
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
(cherry picked from commit a3fa3b2e02)
This commit is contained in:
parent
6e3788e3b1
commit
6e903ae7d5
1 changed files with 6 additions and 3 deletions
|
|
@ -1225,9 +1225,12 @@ void si_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info *info)
|
|||
* current_rast_prim for this draw_vbo call. */
|
||||
if (sctx->gs_shader.cso)
|
||||
rast_prim = sctx->gs_shader.cso->gs_output_prim;
|
||||
else if (sctx->tes_shader.cso)
|
||||
rast_prim = sctx->tes_shader.cso->info.properties[TGSI_PROPERTY_TES_PRIM_MODE];
|
||||
else
|
||||
else if (sctx->tes_shader.cso) {
|
||||
if (sctx->tes_shader.cso->info.properties[TGSI_PROPERTY_TES_POINT_MODE])
|
||||
rast_prim = PIPE_PRIM_POINTS;
|
||||
else
|
||||
rast_prim = sctx->tes_shader.cso->info.properties[TGSI_PROPERTY_TES_PRIM_MODE];
|
||||
} else
|
||||
rast_prim = info->mode;
|
||||
|
||||
if (rast_prim != sctx->b.current_rast_prim) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue