X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fdrivers%2Fsvga%2Fsvga_draw_private.h;h=52a2c0f18b357ac344af56f49c8bdbba8b416528;hb=40258fb8b83325bf208876babf779e7ea08a870c;hp=2a60038e9b5ae9935d0cdf24969e1f726536451d;hpb=196a0b28a096aa85b0fff141a4bb59680c8de3f2;p=mesa.git diff --git a/src/gallium/drivers/svga/svga_draw_private.h b/src/gallium/drivers/svga/svga_draw_private.h index 2a60038e9b5..52a2c0f18b3 100644 --- a/src/gallium/drivers/svga/svga_draw_private.h +++ b/src/gallium/drivers/svga/svga_draw_private.h @@ -191,31 +191,23 @@ static inline boolean svga_need_unfilled_fallback(const struct svga_hwtnl *hwtnl, enum pipe_prim_type prim) { - const struct svga_context *svga = hwtnl->svga; - if (u_reduced_prim(prim) != PIPE_PRIM_TRIANGLES) { /* if we're drawing points or lines, no fallback needed */ return FALSE; } - if (svga_have_vgpu10(svga)) { - /* vgpu10 supports polygon fill and line modes */ - if ((prim == PIPE_PRIM_QUADS || - prim == PIPE_PRIM_QUAD_STRIP || - prim == PIPE_PRIM_POLYGON) && - hwtnl->api_fillmode == PIPE_POLYGON_MODE_LINE) { - /* VGPU10 doesn't directly render quads or polygons. They're - * converted to triangles. If we let the device draw the triangle - * outlines we'll get an extra, stray lines in the interiors. - * So, to draw unfilled quads correctly, we need the fallback. - */ - return true; - } - return hwtnl->api_fillmode == PIPE_POLYGON_MODE_POINT; - } else { - /* vgpu9 doesn't support line or point fill modes */ - return hwtnl->api_fillmode != PIPE_POLYGON_MODE_FILL; + if ((prim == PIPE_PRIM_QUADS || + prim == PIPE_PRIM_QUAD_STRIP || + prim == PIPE_PRIM_POLYGON) && + hwtnl->api_fillmode == PIPE_POLYGON_MODE_LINE) { + /* We can't directly render quads or polygons. They're + * converted to triangles. If we let the device draw the triangle + * outlines we'll get an extra, stray lines in the interiors. + * So, to draw unfilled quads correctly, we need the fallback. + */ + return true; } + return false; }