[PATCH xserver] glamor: Paint first and last pixel of lines
Keith Packard
keithp at keithp.com
Tue Feb 7 20:06:37 UTC 2017
Max Staudt <mstaudt at suse.de> writes:
> OpenGL implementations are allowed to be imprecise in drawing line caps.
> This patch expands on the original workaround in dc9fa908.
Yeah, finding a way to work around GL differences seems like a good
idea. In this case, however, I think you're fixing some drivers and
breaking others -- when drawing with non-idempotent raster
ops.
Idempotent raster ops are those for which multiple draws generate the
same result, like GXcopy; hence non-idempotent operations are those
which do not, such as GXxor.
I'm not sure what we should do here; there's no requirement in the
protocol that we do anything at all as the server is allowed to draw
pretty much whatever it wants for zero-width lines.
If you've found specific problems with Mesa drivers, I'd suggest we
actually go fix those instead of working around them in the X
server. The GL spec seems pretty clear in what it wants, and I think
that aligns with what the X server currently expects.
--
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg-devel/attachments/20170207/4898e72a/attachment.sig>
More information about the xorg-devel
mailing list