[PATCH 1/2] wined3d: Put local constants into the shader code again

Stefan Dösinger stefan at codeweavers.com
Tue Mar 12 20:25:56 CDT 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 2013-03-12 18:19, schrieb Stefan Dösinger:
> The test program is available at 
> https://84.112.174.163/~git/perftest file const_gl/const_gl.cpp.
My server is currently turned off (and I should move this to github or
somewhere at some point), so I've attached the test program here for
reference.

Resolution and constant mode are hardcoded into it. Tab/space mixup
thanks to Visual Studio. Compile the Linux version with g++
const_gl.cpp -o const_gl -lGL -lglut -lGLEW .

A d3d version is attached as well. It does not load the same values
when using the global constants, but this doesn't seem to affect
performance.

I haven't tested ARB shaders, but from the WoT results before and
after patch 2, their behavior seems to be the same as GLSL and native d3d.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJRP9WcAAoJEN0/YqbEcdMwdmoP/2LvEFpPpmTiZDzxqhp38WfU
DKs2S8m1kP86fL55GwLtth289WC9MsQyOosOVOqt8r3YWZyckeisZyhdP2ez2KRV
9kgxMnEXwzcZBtmm/+nrl0FwJghy86AnZ0YJ9PpnCpY0k4VTQYjaWQALlyqtF+qm
Uup4UE+m4yR4DoNL/u/161Zxh+OLOA8PXEhWWfDozNL/8yMlRfPs6gzLMN/oKTIL
UMA90gesZWPt7/J2Bp0+OeZvMWqNa54A2akxsLvtxVP/rB8baym4iYLn5Y2IPXa2
lBqALc+POMcVk45FCgkzjUw5b/7ck9V5n0PKOw/9Jwrm8/ChHE4i0ZwGEmHzh3So
y1d/KydwesYtyCadmlklgJy1J+CxyCd/fNVUmsNtpzDEo6OF7oEagvwBUlTnCdR9
W9B9lmpsDCuBIxEnAy7C3HEZ18o70HdoUsKe5hX8fVn5lnwFPWdp7hBA0nVbO0y0
Fybps006cQmc0Rm9nHJjeJ9JoGzl/iuSX0AnQ5fiJS6fS5RrrGAnFBEb1g2O879X
pNSIgBdKUSSfGBoUZKKIy+GZzC+VhDm4UqhtSaYudlUB9pcoMDFYRGQ3Rk48kRuD
tJ8Ah2VBYeFUvI+x4Xty9AtOwwFWYejNG+6cNNF3EOALz2JvhFKDEJCI0p7bdmgR
XCfPxQyYN7+JGFw8JiO5
=RgiG
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: const_d3d.cpp
Type: text/x-c++src
Size: 8485 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20130312/8887ebe9/attachment.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: const_gl.cpp
Type: text/x-c++src
Size: 10094 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20130312/8887ebe9/attachment-0001.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: const_d3d.cpp.sig
Type: application/pgp-signature
Size: 543 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20130312/8887ebe9/attachment.pgp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: const_gl.cpp.sig
Type: application/pgp-signature
Size: 543 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20130312/8887ebe9/attachment-0001.pgp>


More information about the wine-devel mailing list