Age | Commit message (Collapse) | Author | |
---|---|---|---|
2009-12-08 | gallium: fix more potential strict aliasing issues | Roland Scheidegger | |
In particular, gcc man page warns that union a_union { int i; double d; }; int f() { double d = 3.0; return ((union a_union *) &d)->i; } "might" not be ok (why not?), even though it doesn't seem to generate any warnings. Hence don't use this and do the extra step to actually use assignment to get the values in/out of the union. This changes parts of 3456f9149b3009fcfce80054759d05883d3c4ee5. | |||
2009-12-07 | mesa: fix shader prog_execute strict aliasing violations | Roland Scheidegger | |
use unions instead of pointer casts. | |||
2009-12-07 | gallium/util: fix util_color_[un]pack[-ub] to be strict aliasing safe | Roland Scheidegger | |
use pointer to union instead of void pointer. gcc complained a lot, depending what the pointer originally actually was. Looks like it's in fact maybe legal to cast for instance uint pointers to union pointers as long as union contains a uint type, hence use this with some callers, other just use union util_color in the first place. | |||
2009-12-07 | mesa: fix strict aliasing issues in half-to-float/float-to-half conversions | Roland Scheidegger | |
use union instead of casts | |||
2009-12-04 | identity: fix copy&paste error | Roland Scheidegger | |
2009-12-04 | svga: fix another pipe_reference strict aliasing violation | Roland Scheidegger | |
2009-12-03 | gallium: fix remaining users of pipe_reference function | Roland Scheidegger | |
2009-12-03 | mesa: use _mesa_memcpy for COPY_4FV macro | Roland Scheidegger | |
Gets rid of one of the worst strict-aliasing offenders, and actually produces faster code (at least in some cases, when compiler can use for instance 64bit moves for memcpy). (note _mesa_memcpy should get inlined) | |||
2009-12-03 | gallium: fix ref counting bug in pb_bufmgr | José Fonseca | |
This was discovered by the pipe_reference api change. | |||
2009-12-03 | gallium: fix reference counting functions to be strict-aliasing compliant | Roland Scheidegger | |
Historically, parts of mesa code are not strict-aliasing safe, hence -fno-strict-aliasing is needed to compile (this got forgotten for scons builds for gallium, which indeed not only caused compiler warnings but also unexplicable crashes in non-debug builds). However, we should try to eliminate code not complying with strict-aliasing code at least for gallium. Hence change pipe_reference functions to make them strict-aliasing compliant. This adds a bit more complexity (especially for derived classes) but is the right thing to do, and it does in fact fix a segfault. | |||
2009-12-03 | tgsi/ureg: Fix ureg_emit_src(). | Michal Krol | |
2009-12-02 | radeong: Clean up some bad code. | Corbin Simpson | |
2009-12-02 | radeong: Add helper to determine pipe driver. | Corbin Simpson | |
2009-12-02 | radeong: Do ioctls before selecting pipe driver. | Corbin Simpson | |
2009-12-02 | r300g, radeong: De-specialize r300_winsys into radeon_winsys. | Corbin Simpson | |
There's like five good reasons for this, I swear. | |||
2009-12-02 | radeong: Change ioctl order, document it. | Corbin Simpson | |
2009-12-02 | r300g: No vertex textures here. | Corbin Simpson | |
2009-12-02 | cso: check if pipe_context::bind_vertex_sampler_states is non-null | Brian Paul | |
Fixes segfaults upon exit when the CSO module is releasing its objects. | |||
2009-12-02 | Revert "llvmpipe: plug in dummy pipe_context::set_vertex_sampler_textures ↵ | Brian Paul | |
function" This reverts commit 792888121b92913733daec7526c9441f27ce1231. We're instead returning 0 for the PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS query. | |||
2009-12-02 | llvmpipe: return 0 for PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS query | Brian Paul | |
The driver (and draw module) don't support vertex shader textures yet. | |||
2009-12-02 | llvmpipe: plug in dummy pipe_context::set_vertex_sampler_textures function | Brian Paul | |
Fixes immediate segfault. | |||
2009-12-02 | cell: fix TGSI breakage | Brian Paul | |
2009-12-02 | gallium/util: __builtin_bswap32() is in only gcc 4.3 or later | Brian Paul | |
2009-12-02 | gallium/util: added PIPE_CC_GCC_VERSION symbol | Brian Paul | |
2009-12-01 | mesa: added comment for target_enum_to_index() | Brian Paul | |
2009-12-01 | softpipe: setup machine->Face without a conditional | Brian Paul | |
2009-12-01 | tgsi: fix ureg emit after version token change | Keith Whitwell | |
2009-12-01 | st/xorg: fix merge droppings | Keith Whitwell | |
These were stranded in emacs and not saved before committing. | |||
2009-12-01 | Merge commit 'origin/tgsi-simplify-ext' | Keith Whitwell | |
Conflicts: src/gallium/drivers/r300/r300_vs.c | |||
2009-12-01 | Merge commit 'origin/mesa_7_7_branch' | Keith Whitwell | |
Conflicts: src/gallium/drivers/svga/svga_screen_texture.c src/gallium/state_trackers/xorg/xorg_composite.c src/gallium/state_trackers/xorg/xorg_exa.c src/gallium/state_trackers/xorg/xorg_renderer.c src/gallium/state_trackers/xorg/xorg_xv.c src/mesa/main/texgetimage.c src/mesa/main/version.h | |||
2009-12-01 | mesa: Update vertex texture code after gallium changes. | Michal Krol | |
2009-12-01 | r300g: simplify allocations of VS output registers | Marek Olšák | |
No need to parse TGSI tokens since it's easier to walk through shader semantics. Also fog coordinates now work reliably. | |||
2009-12-01 | r300g: simplify allocations of FS input registers | Marek Olšák | |
2009-12-01 | r300g: clean up derived states | Marek Olšák | |
The state setups which aren't derived anymore have been moved to the VS and FS objects. | |||
2009-12-01 | r300g: VS->FS attribute routing rework | Marek Olšák | |
Now it always correctly pairs up VS and FS even if the semantics and indices of VS outputs and FS inputs don't match. | |||
2009-12-01 | r300g: add R300 prefix in reg definitions | Marek Olšák | |
2009-12-01 | cso: Fix function prototype. | Michal Krol | |
2009-12-01 | trace: Implement separate vertex sampler state. | Michal Krol | |
2009-12-01 | fo: Implement separate vertex sampler state. | Michal Krol | |
2009-12-01 | id: Implement separate vertex sampler state. | Michal Krol | |
2009-12-01 | trace: Reduce double semicolons to single ones. | Michal Krol | |
2009-12-01 | sp: Do not falsely advertise support for some SNORM formats. | Michal Krol | |
2009-12-01 | sp: Implement separate vertex sampler state. | Michal Krol | |
2009-12-01 | python: Update for renamed sampler/texture state setters. | Michal Krol | |
2009-12-01 | st: Update for renamed sampler/texture state setters. | Michal Krol | |
2009-12-01 | trace: Update for renamed sampler/texture state setters. | Michal Krol | |
2009-12-01 | svga: Update for renamed sampler/texture state setters. | Michal Krol | |
2009-12-01 | r300: Update for renamed sampler/texture state setters. | Michal Krol | |
2009-12-01 | nv: Update for renamed sampler/texture state setters. | Michal Krol | |
2009-12-01 | lp: Update for renamed sampler/texture state setters. | Michal Krol | |