summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2009-12-08gallium: fix more potential strict aliasing issuesRoland 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-07mesa: fix shader prog_execute strict aliasing violationsRoland Scheidegger
use unions instead of pointer casts.
2009-12-07gallium/util: fix util_color_[un]pack[-ub] to be strict aliasing safeRoland 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-07mesa: fix strict aliasing issues in half-to-float/float-to-half conversionsRoland Scheidegger
use union instead of casts
2009-12-04identity: fix copy&paste errorRoland Scheidegger
2009-12-04svga: fix another pipe_reference strict aliasing violationRoland Scheidegger
2009-12-03gallium: fix remaining users of pipe_reference functionRoland Scheidegger
2009-12-03mesa: use _mesa_memcpy for COPY_4FV macroRoland 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-03gallium: fix ref counting bug in pb_bufmgrJosé Fonseca
This was discovered by the pipe_reference api change.
2009-12-03gallium: fix reference counting functions to be strict-aliasing compliantRoland 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-03tgsi/ureg: Fix ureg_emit_src().Michal Krol
2009-12-02radeong: Clean up some bad code.Corbin Simpson
2009-12-02radeong: Add helper to determine pipe driver.Corbin Simpson
2009-12-02radeong: Do ioctls before selecting pipe driver.Corbin Simpson
2009-12-02r300g, radeong: De-specialize r300_winsys into radeon_winsys.Corbin Simpson
There's like five good reasons for this, I swear.
2009-12-02radeong: Change ioctl order, document it.Corbin Simpson
2009-12-02r300g: No vertex textures here.Corbin Simpson
2009-12-02cso: check if pipe_context::bind_vertex_sampler_states is non-nullBrian Paul
Fixes segfaults upon exit when the CSO module is releasing its objects.
2009-12-02Revert "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-02llvmpipe: return 0 for PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS queryBrian Paul
The driver (and draw module) don't support vertex shader textures yet.
2009-12-02llvmpipe: plug in dummy pipe_context::set_vertex_sampler_textures functionBrian Paul
Fixes immediate segfault.
2009-12-02cell: fix TGSI breakageBrian Paul
2009-12-02gallium/util: __builtin_bswap32() is in only gcc 4.3 or laterBrian Paul
2009-12-02gallium/util: added PIPE_CC_GCC_VERSION symbolBrian Paul
2009-12-01mesa: added comment for target_enum_to_index()Brian Paul
2009-12-01softpipe: setup machine->Face without a conditionalBrian Paul
2009-12-01tgsi: fix ureg emit after version token changeKeith Whitwell
2009-12-01st/xorg: fix merge droppingsKeith Whitwell
These were stranded in emacs and not saved before committing.
2009-12-01Merge commit 'origin/tgsi-simplify-ext'Keith Whitwell
Conflicts: src/gallium/drivers/r300/r300_vs.c
2009-12-01Merge 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-01mesa: Update vertex texture code after gallium changes.Michal Krol
2009-12-01r300g: simplify allocations of VS output registersMarek 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-01r300g: simplify allocations of FS input registersMarek Olšák
2009-12-01r300g: clean up derived statesMarek Olšák
The state setups which aren't derived anymore have been moved to the VS and FS objects.
2009-12-01r300g: VS->FS attribute routing reworkMarek 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-01r300g: add R300 prefix in reg definitionsMarek Olšák
2009-12-01cso: Fix function prototype.Michal Krol
2009-12-01trace: Implement separate vertex sampler state.Michal Krol
2009-12-01fo: Implement separate vertex sampler state.Michal Krol
2009-12-01id: Implement separate vertex sampler state.Michal Krol
2009-12-01trace: Reduce double semicolons to single ones.Michal Krol
2009-12-01sp: Do not falsely advertise support for some SNORM formats.Michal Krol
2009-12-01sp: Implement separate vertex sampler state.Michal Krol
2009-12-01python: Update for renamed sampler/texture state setters.Michal Krol
2009-12-01st: Update for renamed sampler/texture state setters.Michal Krol
2009-12-01trace: Update for renamed sampler/texture state setters.Michal Krol
2009-12-01svga: Update for renamed sampler/texture state setters.Michal Krol
2009-12-01r300: Update for renamed sampler/texture state setters.Michal Krol
2009-12-01nv: Update for renamed sampler/texture state setters.Michal Krol
2009-12-01lp: Update for renamed sampler/texture state setters.Michal Krol