summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'gallium-strict-aliasing'Roland Scheidegger2009-12-084-7/+10
|\
| * gallium: fix more potential strict aliasing issuesRoland Scheidegger2009-12-081-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * gallium/util: fix util_color_[un]pack[-ub] to be strict aliasing safeRoland Scheidegger2009-12-072-4/+4
| | | | | | | | | | | | | | | | 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.
| * svga: fix another pipe_reference strict aliasing violationRoland Scheidegger2009-12-041-1/+2
| |
| * gallium: fix reference counting functions to be strict-aliasing compliantRoland Scheidegger2009-12-031-1/+2
| | | | | | | | | | | | | | | | | | | | | | 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.
* | svga: Dump SVGA_3D_CMD_BLIT_SURFACE_TO_SCREEN commands.José Fonseca2009-12-052-4/+43
| |
* | svga: Use _debug_printf, so that output may be dumped in release builds too.José Fonseca2009-12-053-687/+687
| | | | | | | | The dump calls should be wrapped in #ifdef DEBUG .. #endif.
* | Merge branch 'gallium-noblocks'Roland Scheidegger2009-12-042-21/+18
|\ \ | | | | | | | | | | | | Conflicts: src/gallium/state_trackers/xorg/xorg_exa.c
| * | gallium: adapt drivers to interface cleanupsRoland Scheidegger2009-12-022-21/+18
| | |
* | | Merge branch 'mesa_7_7_branch'Jakob Bornecrantz2009-12-022-0/+290
|\ \ \ | |_|/ |/| |
| * | svga: Add header files for overlay supportJakob Bornecrantz2009-12-012-0/+290
| | |
* | | Merge commit 'origin/tgsi-simplify-ext'Keith Whitwell2009-12-014-129/+129
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: src/gallium/drivers/r300/r300_vs.c
| * | | svga: Update text shader header.Michal Krol2009-11-271-1/+1
| | | |
| * | | tgsi: rename fields of tgsi_full_src_register to reduce verbosityKeith Whitwell2009-11-241-34/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | SrcRegister -> Register SrcRegisterInd -> Indirect SrcRegisterDim -> Dimension SrcRegisterDimInd -> DimIndirect
| * | | tgsi: rename fields of tgsi_full_dst_register to reduce verbosityKeith Whitwell2009-11-241-6/+6
| | | | | | | | | | | | | | | | | | | | DstRegister -> Register DstRegisterInd -> Indirect
| * | | tgsi: rename fields of tgsi_full_declaration to reduce verbosityKeith Whitwell2009-11-242-4/+4
| | | | | | | | | | | | | | | | DeclarationRange -> Range
| * | | tgsi: rename fields of tgsi_full_instruction to avoid excessive verbosityKeith Whitwell2009-11-241-55/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | InstructionPredicate -> Predicate InstructionLabel -> Label InstructionTexture -> Texture FullSrcRegisters -> Src FullDstRegisters -> Dst
| * | | tgsi: reduce repetition of structure name in its membersKeith Whitwell2009-11-242-36/+36
| | | | | | | | | | | | | | | | | | | | Rename Semantic.SemanticName to Semantic.Name. Similar for SemanticIndex, and the members of the tgsi_version struct.
| * | | gallium: simplify tgsi tokens furtherKeith Whitwell2009-11-241-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Drop anonymous 'Extended' fields, have every optional token named explicitly in its parent. Eg. there is now an Instruction.Label flag, etc. Drop destination modifiers and other functionality which cannot be generated by tgsi_ureg.c, which is now the primary way of creating shaders. Pull source modifiers into the source register token, drop the second negate flag. The source register token is now full - if we need to expand it, probably best to move all of the modifiers to a new token and have a single flag for it.
* | | | Merge commit 'origin/mesa_7_7_branch'Keith Whitwell2009-12-0116-120/+256
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | svga: Re-add shader dumping.José Fonseca2009-11-271-0/+14
| | | |
| * | | svga: Handle comment tokens when dumping.José Fonseca2009-11-272-1/+12
| | | |
| * | | svga: Use consistent names for public symbol names of shader dumping facilities.José Fonseca2009-11-275-12/+12
| | | |
| * | | svga: Use consistent file names for dumping facilities.José Fonseca2009-11-2710-11/+11
| | | |
| * | | svga: flush our command buffer after the 8th distinct render targetKeith Whitwell2009-11-273-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This helps improve the surface cache behaviour in the face of the large number of single-use render targets generated by EXA and the xorg state tracker. Without this we can reference hundreds of individual render targets from a command buffer, which leaves little scope for sharing or reuse of those targets. Flushing early means we can start reusing textures much sooner. This shouldn't have much effect on normal 3d rendering as it's pretty rare to have a command buffer with >8 different render targets in that world.
| * | | svga: add DEBUG_CACHE optionKeith Whitwell2009-11-278-9/+53
| | | |
| * | | svga: hash the whole key, not just the first four bytesKeith Whitwell2009-11-261-3/+3
| | | |
| * | | svga: Remove spurious argument to SVGA_DBG.José Fonseca2009-11-261-1/+1
| | | |
| * | | svga: try harder to make the cachable flag workKeith Whitwell2009-11-252-6/+19
| | | | | | | | | | | | | | | | It doesn't though.
| * | | svga: revert packing of surface keyKeith Whitwell2009-11-251-3/+3
| | | | | | | | | | | | | | | | Over-ambitious packing of values broke my cursor.
| * | | svga: cache textures as well as buffersKeith Whitwell2009-11-245-117/+167
| | | |
| * | | svga: Filter out pendantic and ansi flagsJakob Bornecrantz2009-11-241-0/+3
| |/ / | | | | | | | | | | | | Rather have the driver compile without the flags then having to disable them.
* | / svga: Update for renamed sampler/texture state setters.Michal Krol2009-12-011-2/+2
| |/ |/|
* | svga: fix for not using texture width/height/depth arraysRoland Scheidegger2009-11-272-33/+32
| |
* | svga: Handle comment tokens when dumping.José Fonseca2009-11-242-1/+12
| |
* | svga: Use consistent names for public symbol names of shader dumping facilities.José Fonseca2009-11-245-12/+12
| |
* | svga: Use consistent file names for dumping facilities.José Fonseca2009-11-2410-11/+11
|/
* svga: Scrub Makefiles a bitJakob Bornecrantz2009-11-231-7/+1
| | | | | | Remove x86 specific hacks. Not that they will ever be used on none x86 arches, but they are built by default. And the way the flags where added was a hack.
* svga: Remove -Werror for now as GCC 4.4.x raises a bunch of warningsJakob Bornecrantz2009-11-172-4/+1
|
* svga: Add svga driverJakob Bornecrantz2009-11-1771-0/+24312