[Mesa-dev] TGSI RET only at end of function?

Tilman Sauerbeck tilman at code-monkey.de
Tue Sep 21 10:33:38 PDT 2010


Hi,
tgsi.rst currently reads:

> .. opcode:: RET - Subroutine Call Return
>
>  pc = pop()
>
>  Potential restrictions:  
>  * Only occurs at end of function.

Also, currently the glsl compiler happily generates code that ends up as
a TGSI shader that has RET in the middle of a function. ie it seems that
"potential restriction" isn't true at the moment.

Should that restriction be removed from tgsi.rst?

Or do you plan to change the glsl compiler or the module that transforms
the glsl compiler's output to TGSI so that RET will only be emitted at
the end of a function?

... or maybe I'm misinterpreting the spec?

Thanks,
Tilman

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20100921/cf87e1cb/attachment-0001.pgp>


More information about the mesa-dev mailing list