Re: [PATCH] gl: Draw image surface to fbo gl surface using intermediate texture

Eric Anholt <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
Dongyeon Kim <[email protected]> writes:

> It is fine to set the FBO content using glTex(Sub)Image2D before the
> texture is bound to the framebuffer.  But what the current
> implementation does is that after the texture has been bound to the
> framebuffer to be the rendering target, cairo again binds the same
> texture as the rendering source and uploads data.  As I know this
> falls into a rendering feedback loop.
>
> According to the OpenGL ES spec, a feedback loop may exist when a
> texture object is used as both the source and destination of a GL
> operation, and when a feedback loop exists, undefined behavior
> results.
>
> I will check again whether this is the driver-specific issue.
> Thanks

The patch you sent didn't appear to be about avoiding feedback loops (a
feedback loop, to be clear, is having an fbo with a texture and doing a
draw call like glDrawArrays that samples from the same texture), it just
avoided these paths on texture-backed surface entirely.

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlCmiZ0ACgkQHUdvYGzw6vcbhwCfRf/voooLmh061n7NQ1AEWeyQ
eEoAn2FFbtI9QtjuNrVpY46YEbTT9Fjd
=neZH
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.