Mesa (master): 22 new commits
Marek Olšák
mareko at kemper.freedesktop.org
Thu Jan 5 17:29:28 UTC 2012
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f82d40d4b1aa60364c03c32578ecd675d4d86dcf
Author: Marek Olšák <maraeo at gmail.com>
Date: Wed Jan 4 02:09:44 2012 +0100
glx/dri2: print FPS when env var LIBGL_SHOW_FPS is 1 (v2)
This is useful for apps which don't print FPS.
Only enabled in SwapBuffers.
v2: track state per drawable, use libGL prefix
Reviewed-by: Michel Dänzer <michel at daenzer.net>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c77efc6bb63f7ff3f1ddf500e57beff5b317b9b1
Author: Marek Olšák <maraeo at gmail.com>
Date: Wed Jan 4 05:18:58 2012 +0100
r300/compiler: fix buffer underflow when setting SEM_WAIT on last instruction
Do it after we check whether inst_end != -1.
Also move the code structure at the beginning of r300_fragment_shader_code
to detect underflows easily with valgrind.
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c2cc630f2896175ff0f368d9199acbe24afb7e75
Author: Marek Olšák <maraeo at gmail.com>
Date: Wed Jan 4 02:05:51 2012 +0100
u_vbuf: use cso_cache to cache vertex element states
Improves performance to 28 fps in Cogs.
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ce44bae366ade59fb2dbdfbfe5a1ab8d24518a57
Author: Marek Olšák <maraeo at gmail.com>
Date: Tue Jan 3 22:01:03 2012 +0100
u_vbuf: implement another upload codepath which unrolls indices
Improves performance from cca 1 fps to 23 fps in Cogs.
This new codepath is not always used, instead, there is a heuristic which
determines whether to use it. Using translate for uploads is generally
slower than what we have had already, it's a win only in a few cases.
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2b851526c1c047bba7ebb7e51706b1694f027947
Author: Marek Olšák <maraeo at gmail.com>
Date: Tue Jan 3 21:33:55 2012 +0100
u_vbuf: cleanup variable names to be consistent
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=64242b23c1893dd6e1c048beee0e1573aeaf1abc
Author: Marek Olšák <maraeo at gmail.com>
Date: Tue Jan 3 21:28:41 2012 +0100
u_vbuf: cleanup the computation of how many vertices to upload/translate
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c897b943f4ba6ad4c7547d16aa9bca47ac1230de
Author: Marek Olšák <maraeo at gmail.com>
Date: Tue Jan 3 16:37:17 2012 +0100
u_vbuf: convert min_index,max_index to start,count
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1ae9e588fa8e213f414f3d2d2e70c001deb304c8
Author: Marek Olšák <maraeo at gmail.com>
Date: Tue Jan 3 19:18:45 2012 +0100
util: add helper function util_dump_draw_info
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=345b1a31c9f1fdd513d6f394c772830bb811fc94
Author: Marek Olšák <maraeo at gmail.com>
Date: Tue Jan 3 19:18:26 2012 +0100
trace: dump primitive restart info
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d1f11ed3eff405561fd94ed05a9f0e5e049f0908
Author: Marek Olšák <maraeo at gmail.com>
Date: Mon Jan 2 03:34:09 2012 +0100
translate: implement translation of 10_10_10_2 types
This is for GL_ARB_vertex_type_2_10_10_10_rev.
I just took the code from u_format_table.c. It's based on pack_rgba_float.
I had no other choice. The u_format hooks are not exactly compatible
with translate. The cleanup of it is left for future work.
Reviewed-by: Dave Airlie <airlied at redhat.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0a8a7144a152eba0e1bd955b7a423ed5336a9f31
Author: Marek Olšák <maraeo at gmail.com>
Date: Mon Jan 2 03:04:00 2012 +0100
translate: implement translation of (pure) integer formats
The conversion is limited to only a few cases, because converting to any other
type shouldn't happen in any driver.
Reviewed-by: Dave Airlie <airlied at redhat.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1ba3240b281fcbbf03372a6e2db68292cb8a8907
Author: Marek Olšák <maraeo at gmail.com>
Date: Mon Jan 2 02:59:51 2012 +0100
u_format: implement fetch_rgba_uint and fetch_rgba_sint for integer formats
Fetching int as float and vice versa is not allowed.
Fetching unsigned int as signed int and vice versa is not allowed either.
Doing conversions like that isn't allowed for samplers in OpenGL.
The three hooks could be consolidated into one fetch hook, which would fetch
uint as uint32, sint as sint32, and everything else as float. The receiving
parameter would be void*. This would be useful for implementing vertex fetches
for shader model 4.0, which has untyped registers.
Reviewed-by: Dave Airlie <airlied at redhat.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0950086376b1c8b7fb89eda81ed7f2f06dee58bc
Author: Marek Olšák <maraeo at gmail.com>
Date: Mon Jan 2 01:13:15 2012 +0100
gallium: add flag PIPE_TRANSFER_MAP_PERMANENTLY
Please see the diff for further info.
This paves the way for moving user buffer uploads out of drivers and should
allow to clean up the mess in u_upload_mgr in the meantime.
For now only allowed for buffers on r300 and r600.
Acked-by: Christian König <deathsimple at vodafone.de>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7cd1c62b6be88072e3d937b67c499592490927f1
Author: Marek Olšák <maraeo at gmail.com>
Date: Mon Jan 2 00:02:34 2012 +0100
gallium: remove deprecated PIPE_TRANSFER_DISCARD
PIPE_TRANSFER_DISCARD_RANGE is defined the same.
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5968e4068cdcb0551f1c519f236560bb44ea659e
Author: Marek Olšák <maraeo at gmail.com>
Date: Sun Jan 1 20:27:40 2012 +0100
u_vbuf: translate per-vertex, per-instance, and constant attribs separately
We don't wanna convert per-instance or constant (zero-stride) attribs into
ordinary vertex attribs.
More importantly, the translation of instance attribs now finally works.
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=dbd60d27e8087a3bacf36d4eceef15dc4fcdccee
Author: Marek Olšák <maraeo at gmail.com>
Date: Sun Jan 1 19:11:25 2012 +0100
u_vbuf: take start_instance into account when uploading instanced attribs
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f94d390213308d4aca1515c75acc6865ebb45796
Author: Marek Olšák <maraeo at gmail.com>
Date: Sun Jan 1 18:23:07 2012 +0100
u_upload_mgr: remove the 'flushed' parameter
Not used by anybody.
Reviewed-by: Brian Paul <brianp at vmware.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c727cc175bcbf96f12f27c46819667948d5ebbe2
Author: Marek Olšák <maraeo at gmail.com>
Date: Sun Jan 1 17:53:55 2012 +0100
u_vbuf: don't map user buffers, just obtain a pointer to them
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f430f794ace50022b1b81408a3721b8e0b2519bb
Author: Marek Olšák <maraeo at gmail.com>
Date: Sun Jan 1 17:38:22 2012 +0100
u_vbuf: only map a subrange of buffers to translate
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=214b87aa0469a12ea72d624cfaee0ca46179ec5f
Author: Marek Olšák <maraeo at gmail.com>
Date: Sun Jan 1 17:12:35 2012 +0100
gallium: fix behavior of pipe_buffer_map_range
To match what transfer_map returns. Really, subtracting the offset leads
to bugs if someone expects it to work exactly like transfer_map.
Reviewed-by: Brian Paul <brianp at vmware.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fb0aa34fab77fe8a7fc3253d5ecf635ce37a21c7
Author: Marek Olšák <maraeo at gmail.com>
Date: Sun Jan 1 13:05:16 2012 +0100
u_vbuf: remove the workaround for half floats and translate
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1acef6a7465e8c54dc10a43c9e7278d4506c1d5e
Author: Marek Olšák <maraeo at gmail.com>
Date: Sun Jan 1 12:36:44 2012 +0100
translate: implement translation of half floats in the generic codepath
More information about the mesa-commit
mailing list