summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gallium: fix remaining users of pipe_reference functionRoland Scheidegger2009-12-034-4/+7
|
* mesa: use _mesa_memcpy for COPY_4FV macroRoland Scheidegger2009-12-031-8/+3
| | | | | | | 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)
* gallium: fix ref counting bug in pb_bufmgrJosé Fonseca2009-12-031-4/+1
| | | | This was discovered by the pipe_reference api change.
* gallium: fix reference counting functions to be strict-aliasing compliantRoland Scheidegger2009-12-037-17/+27
| | | | | | | | | | | 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.
* tgsi/ureg: Fix ureg_emit_src().Michal Krol2009-12-031-3/+1
|
* radeong: Clean up some bad code.Corbin Simpson2009-12-021-8/+2
|
* radeong: Add helper to determine pipe driver.Corbin Simpson2009-12-021-0/+8
|
* radeong: Do ioctls before selecting pipe driver.Corbin Simpson2009-12-022-66/+65
|
* r300g, radeong: De-specialize r300_winsys into radeon_winsys.Corbin Simpson2009-12-0213-187/+190
| | | | There's like five good reasons for this, I swear.
* radeong: Change ioctl order, document it.Corbin Simpson2009-12-021-12/+22
|
* r300g: No vertex textures here.Corbin Simpson2009-12-021-0/+7
|
* cso: check if pipe_context::bind_vertex_sampler_states is non-nullBrian Paul2009-12-021-1/+2
| | | | Fixes segfaults upon exit when the CSO module is releasing its objects.
* Revert "llvmpipe: plug in dummy pipe_context::set_vertex_sampler_textures ↵Brian Paul2009-12-023-21/+6
| | | | | | | | function" This reverts commit 792888121b92913733daec7526c9441f27ce1231. We're instead returning 0 for the PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS query.
* llvmpipe: return 0 for PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS queryBrian Paul2009-12-021-1/+1
| | | | The driver (and draw module) don't support vertex shader textures yet.
* llvmpipe: plug in dummy pipe_context::set_vertex_sampler_textures functionBrian Paul2009-12-023-6/+21
| | | | Fixes immediate segfault.
* cell: fix TGSI breakageBrian Paul2009-12-021-1/+1
|
* gallium/util: __builtin_bswap32() is in only gcc 4.3 or laterBrian Paul2009-12-021-1/+1
|
* gallium/util: added PIPE_CC_GCC_VERSION symbolBrian Paul2009-12-021-0/+1
|
* mesa: added comment for target_enum_to_index()Brian Paul2009-12-011-1/+2
|
* softpipe: setup machine->Face without a conditionalBrian Paul2009-12-011-5/+2
|
* tgsi: fix ureg emit after version token changeKeith Whitwell2009-12-011-1/+1
|
* st/xorg: fix merge droppingsKeith Whitwell2009-12-012-68/+0
| | | | These were stranded in emacs and not saved before committing.
* Merge commit 'origin/tgsi-simplify-ext'Keith Whitwell2009-12-01104-2500/+1718
|\ | | | | | | | | Conflicts: src/gallium/drivers/r300/r300_vs.c
| * vega: Update shader headers.Michal Krol2009-11-273-14/+14
| | | | | | | | Drop the 1.1 version suffix.
| * python/tests: Update shader headers.Michal Krol2009-11-2758-63/+63
| | | | | | | | Drop the 1.1 version suffix.
| * svga: Update text shader header.Michal Krol2009-11-271-1/+1
| |
| * vl: Do not emit tgsi_version token.Michal Krol2009-11-272-32/+24
| |
| * tgsi: Remove tgsi_version token.Michal Krol2009-11-2711-72/+18
| |
| * gallium: Remove tgsi_version token.Michal Krol2009-11-271-6/+0
| | | | | | | | Not really needed, never served its purpose.
| * tgsi: Fix token builder.Michal Krol2009-11-252-41/+2
| |
| * tgsi: Update raw token dumper after token definition changes.Michal Krol2009-11-251-116/+32
| |
| * tgsi: rename fields of tgsi_full_src_register to reduce verbosityKeith Whitwell2009-11-2432-575/+575
| | | | | | | | | | | | | | SrcRegister -> Register SrcRegisterInd -> Indirect SrcRegisterDim -> Dimension SrcRegisterDimInd -> DimIndirect
| * tgsi: rename fields of tgsi_full_dst_register to reduce verbosityKeith Whitwell2009-11-2431-283/+283
| | | | | | | | | | DstRegister -> Register DstRegisterInd -> Indirect
| * tgsi: rename fields of tgsi_full_declaration to reduce verbosityKeith Whitwell2009-11-2429-109/+109
| | | | | | | | DeclarationRange -> Range
| * tgsi: rename fields of tgsi_full_instruction to avoid excessive verbosityKeith Whitwell2009-11-2431-678/+678
| | | | | | | | | | | | | | | | InstructionPredicate -> Predicate InstructionLabel -> Label InstructionTexture -> Texture FullSrcRegisters -> Src FullDstRegisters -> Dst
| * tgsi: reduce repetition of structure name in its membersKeith Whitwell2009-11-2422-141/+141
| | | | | | | | | | Rename Semantic.SemanticName to Semantic.Name. Similar for SemanticIndex, and the members of the tgsi_version struct.
| * tgsi: remove unnecessary full_token init and free functionsKeith Whitwell2009-11-242-27/+0
| |
| * tgsi: remove unused Flags member from full_instructionKeith Whitwell2009-11-242-3/+0
| |
| * gallium: try and update r300 and nv drivers for tgsi changesKeith Whitwell2009-11-249-17/+17
| | | | | | | | | | | | | | | | It would be nice if these drivers built under the linux-debug header so that these types of interface changes can be minimally propogated into those drivers by people without the hardware. They don't have to generate a working driver -- though a command-dumping winsys would be an excellent for regression checking.
| * gallium: simplify tgsi tokens furtherKeith Whitwell2009-11-2417-721/+160
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-0160-1325/+1476
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | mesa: set version string to 7.7-rc1mesa_7_7_rc1Ian Romanick2009-11-301-1/+1
| | |
| * | Merge branch 'mesa_7_6_branch' into mesa_7_7_branchIan Romanick2009-11-3015-416/+103
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: progs/util/shaderutil.c src/mesa/drivers/dri/r600/r600_context.c src/mesa/main/version.h
| | * | i915: Actually put i915PointParameterfv in the driver function table. Duh.Ian Romanick2009-11-301-0/+1
| | | |
| | * | i915: Fallback bit define missed on previous commitIan Romanick2009-11-291-0/+1
| | | |
| | * | i915: Round point sizes instead of truncate.Ian Romanick2009-11-291-1/+1
| | | |
| | * | i915: Enable point sprite coordinate generationIan Romanick2009-11-291-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support still isn't completely correct, but it's better. piglit point-sprite now passes. However, glean's pointSprite test fails. In that test the texture on the sprite is somehow inverted as though GL_POINT_SPRITE_COORD_ORIGIN were set to GL_LOWER_LEFT. i915 hardware shouldn't be able to do that! I believe there are also problems when not all texture units have GL_COORD_REPLACE set. The hardware enable seems to be all or nothing. Fixes bug #25313.
| | * | Improve implementation of GL_POINT_SPRITE_COORD_ORIGIN errorsIan Romanick2009-11-251-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This enum is only supported for OpenGL 2.0. If a driver supports OpenGL 1.4 and GL_ARB_point_sprite, using this enum should generate an error. This is important because, for example, i915 and i830 can support GL_ARB_point_sprite, but they cannot support GL_POINT_SPRITE_COORD_ORIGIN. This commit just removes the check for NV_point_sprite, which is completely wrong, and add some comments describing what the code should do. I don't see an easy way to check for version >= 2.0 from inside Mesa. Perhaps we should add an extension GL_MESA_point_sprite_20 (like Intel's old GL_EXT_packed_pixels_12) to indicate that this added bit of functionality is available. Also note that glean's pointSprite test only checks for GL_ARB_point_sprite before trying to use GL_POINT_SPRITE_COORD_ORIGIN. Naturally, that fails on non-2.0 implementations (i.e., Mac OS X on GMA 950).
| | * | radeon: fix context destroy needing lock for flushing.Dave Airlie2009-11-251-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thanks to Intel code which I've just stolen pretty much as usual. This fixes fdo bug 22851 which is a dri1 regression since rewrite. Tested by: fpiobaf (Fabio) on #radeon Signed-off-by: Dave Airlie <[email protected]>
| | * | i915: Initialize Length and Offset fields when mapping a buffer objectIan Romanick2009-11-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | This fixes an assertion failure in _mesa_MapBufferARB. Fixes bugzilla #25253.