summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
Commit message (Collapse)AuthorAgeFilesLines
* util/blitter: kill the draw_quad callbackMarek Olšák2009-12-152-25/+6
|
* util/blitter: allocate most of the state objects on-demandMarek Olšák2009-12-151-75/+179
|
* util/blitter: use PIPE_MAX_* limits, and fix a memory leakMarek Olšák2009-12-151-13/+27
|
* util: add blitterMarek Olšák2009-12-154-0/+851
|
* util: add a function which converts 2D coordinates to cubemap coordinatesMarek Olšák2009-12-155-52/+161
| | | | The code was taken over from u_gen_mipmap.
* util: add new fragment shaders to simple_shadersMarek Olšák2009-12-154-12/+80
| | | | | | | | | | New shaders: * Fragment shader which writes depth sampled from a texture * Fragment shader which copies COLOR[0] to multiple render targets Additional improvements: * The fragment 'tex' shaders now take a sampler type (TGSI_TEXTURE_*) so that they can sample from any type of texture, not only from a 2D one.
* util: Fix unity value for swizzle 1.José Fonseca2009-12-151-2/+2
| | | | | | It should be 255 for ubytes, and not 1. Thanks Michal for spotting this.
* util: Add dl wrappers.José Fonseca2009-12-154-0/+142
| | | | Borrowed from Mesa, slightly changed for more type safety.
* tgsi/text: Don't use strncasecmp(), it breaks windows build.Michal Krol2009-12-151-2/+16
| | | | Also, break out of the for-loop when a matching property is found.
* tgsi: add properties and system value registerZack Rusin2009-12-1417-11/+447
| | | | | | adds support for properties to all parts of the tgsi framework, plus introduces a new register which will be used for system generated values.
* tgsi/ureg: Add ureg_DECL_gs_input().Michal Krol2009-12-142-2/+33
| | | | Allows one to declare GS input registers.
* Merge branch 'mesa_7_7_branch'Brian Paul2009-12-111-0/+1
|\ | | | | | | | | | | Conflicts: src/gallium/state_trackers/xorg/xorg_xv.c src/mesa/drivers/dri/intel/intel_span.c
| * Merge branch 'mesa_7_6_branch' into mesa_7_7_branchBrian Paul2009-12-111-0/+1
| |\
| | * rbug: Initialize variable in rbug_get_message.Vinson Lee2009-12-081-0/+1
| | | | | | | | | | | | Silences uninitialized variable warning.
| | * draw: Initialize variable in draw_pt.c.Vinson Lee2009-12-051-1/+2
| | | | | | | | | | | | (cherry picked from commit ea98e9820d7117f7a187f355445796b1ef5d9e0c)
| | * gallium/util: Initialize variables in u_pack_color.h.Vinson Lee2009-12-031-1/+4
| | | | | | | | | | | | (cherry picked from commit 36e2074b63e3e5bc489eb74cad0cd97eafcedb40)
| | * draw: Fix memory leak.Vinson Lee2009-10-271-0/+2
| | | | | | | | | | | | This would only be hit if we got and invalid index_size.
* | | util: Document the meaning of util_format_layout.José Fonseca2009-12-091-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The util_format_layout name was unfortunate and there are as been a lot of confusion due to this. Hopefully this will shed some light on what it was meant for. Bottom line is: do not rely on these values unless you're automatically code generating pixel packing/unpacking routines. Suggestions for better names than util_format_layout are welcome!
* | | Merge branch 'gallium-strict-aliasing'Roland Scheidegger2009-12-085-89/+76
|\ \ \
| * | | gallium/util: fix util_color_[un]pack[-ub] to be strict aliasing safeRoland Scheidegger2009-12-072-86/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | 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-033-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: fix some off-by-one errors in shader length, instruction lengthBrian Paul2009-12-083-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The ureg and/or tgsi-simplification work introduced some inconsistencies between the ureg and traditional TGSI construction code. Now the tgsi_instruction::NrTokens field is consistant and the tgsi_header::BodySize field isn't off by one. Fixes bug 25455.
* | | | util/tile: Support R8G8B8A8_UNORM format.Michal Krol2009-12-071-3/+53
| | | |
* | | | Merge branch 'gallium-noblocks'Roland Scheidegger2009-12-0413-66/+90
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: src/gallium/state_trackers/xorg/xorg_exa.c
| * | | | fixups for interface changes (mostly state trackers)Roland Scheidegger2009-11-301-2/+2
| | | | |
| * | | | gallium: interface cleanups, remove nblocksx/y from pipe_texture and moreRoland Scheidegger2009-11-3013-64/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes nblocksx, nblocksy arrays from pipe_texture (can be recalculated if needed). Furthermore, pipe_format_block struct is gone completely (again, contains just derived state). nblocksx, nblocksy, block are also removed from pipe_transfer, together with the format enum (can be obtained from the texture associated with the transfer).
* | | | | util: Fix generated swizzle comments.José Fonseca2009-12-031-10/+9
| |/ / / |/| | |
* | | | tgsi/ureg: Fix ureg_emit_src().Michal Krol2009-12-031-3/+1
| | | |
* | | | 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.
* | | | gallium/util: __builtin_bswap32() is in only gcc 4.3 or laterBrian Paul2009-12-021-1/+1
| | | |
* | | | tgsi: fix ureg emit after version token changeKeith Whitwell2009-12-011-1/+1
| | | |
* | | | Merge commit 'origin/tgsi-simplify-ext'Keith Whitwell2009-12-0125-1627/+967
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: src/gallium/drivers/r300/r300_vs.c
| * | | | vl: Do not emit tgsi_version token.Michal Krol2009-11-272-32/+24
| | | | |
| * | | | tgsi: Remove tgsi_version token.Michal Krol2009-11-2711-72/+18
| | | | |
| * | | | 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-2419-360/+360
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SrcRegister -> Register SrcRegisterInd -> Indirect SrcRegisterDim -> Dimension SrcRegisterDimInd -> DimIndirect
| * | | | tgsi: rename fields of tgsi_full_dst_register to reduce verbosityKeith Whitwell2009-11-2419-202/+202
| | | | | | | | | | | | | | | | | | | | | | | | | DstRegister -> Register DstRegisterInd -> Indirect
| * | | | tgsi: rename fields of tgsi_full_declaration to reduce verbosityKeith Whitwell2009-11-2416-73/+73
| | | | | | | | | | | | | | | | | | | | DeclarationRange -> Range
| * | | | tgsi: rename fields of tgsi_full_instruction to avoid excessive verbosityKeith Whitwell2009-11-2419-394/+394
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | InstructionPredicate -> Predicate InstructionLabel -> Label InstructionTexture -> Texture FullSrcRegisters -> Src FullDstRegisters -> Dst
| * | | | tgsi: reduce repetition of structure name in its membersKeith Whitwell2009-11-2412-63/+63
| | | | | | | | | | | | | | | | | | | | | | | | | 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: simplify tgsi tokens furtherKeith Whitwell2009-11-2414-577/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-012-0/+11
|\ \ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | | rbug: Mention where the GUI can be found.José Fonseca2009-11-271-0/+4
| | | | |
| * | | | util: also print out memory statisticsZack Rusin2009-11-251-0/+7
| | | | |
* | | | | cso: Fix function prototype.Michal Krol2009-12-011-1/+1
| | | | |
* | | | | vl: Update for renamed sampler/texture state setters.Michal Krol2009-12-012-16/+16
| | | | |