summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gallium/docs: added new pipeline.txt diagramBrian Paul2010-09-171-0/+128
| | | | | | This diagram shows the rendering pipeline with an emphasis on the inputs/outputs for each stage. Some stages emit new vertex attributes and others consume some attributes.
* gallium: rework handling of sprite_coord_enable stateBrian Paul2010-09-1712-94/+172
| | | | | | | | | | | | | | | | | | | | Implement the pipe_rasterizer_state::sprite_coord_enable field in the draw module (and softpipe) according to what's specified in the documentation. The draw module can now add any number of extra vertex attributes to a post-transformed vertex and generate texcoords for those attributes per sprite_coord_enable. Auto-generated texcoords for sprites only worked for one texcoord unit before. The frag shader gl_PointCoord input is now implemented like any other generic/texcoord attribute. The draw module now needs to be informed about fragment shaders since we need to look at the fragment shader's inputs to know which ones need auto-generated texcoords. Only softpipe has been updated so far.
* gallium: better docs for pipe_rasterizer_state::sprite_coord_enableBrian Paul2010-09-171-5/+13
|
* r600g: alternative command stream building from contextJerome Glisse2010-09-1714-25/+5913
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Winsys context build a list of register block a register block is a set of consecutive register that will be emited together in the same pm4 packet (the various r600_block* are there to provide basic grouping that try to take advantage of states that are linked together) Some consecutive register are emited each in a different block, for instance the various cb[0-7]_base. At winsys context creation, the list of block is created & an index into the list of block. So to find into which block a register is in you simply use the register offset and lookup the block index. Block are grouped together into group which are the various pkt3 group of config, context, resource, Pipe state build a list of register each state want to modify, beside register value it also give a register mask so only subpart of a register can be updated by a given pipe state (the oring is in the winsys) There is no prebuild register list or define for each pipe state. Once pipe state are built they are bound to the winsys context. Each of this functions will go through the list of register and will find into which block each reg falls and will update the value of the block with proper masking (vs/ps resource/constant are specialized variant with somewhat limited capabilities). Each block modified by r600_context_pipe_state_set* is marked as dirty and we update a count of dwords needed to emit all dirty state so far. r600_context_pipe_state_set* should be call only when pipe context change some of the state (thus when pipe bind state or set state) Then to draw primitive you make a call to r600_context_draw void r600_context_draw(struct r600_context *ctx, struct r600_draw *draw) It will check if there is enough dwords in current cs buffer and if not will flush. Once there is enough room it will copy packet from dirty block and then add the draw packet3 to initiate the draw. The flush will send the current cs, reset the count of dwords to 0 and remark all states that are enabled as dirty and recompute the number of dwords needed to send the current context. Signed-off-by: Jerome Glisse <[email protected]>
* r600g: Fixed the shift in S_02880C_KILL_ENABLE.Tilman Sauerbeck2010-09-172-2/+2
| | | | Signed-off-by: Tilman Sauerbeck <[email protected]>
* r600g: Enable PIPE_SHADER_CAP_TGSI_CONT_SUPPORTED.Tilman Sauerbeck2010-09-171-2/+1
| | | | Signed-off-by: Tilman Sauerbeck <[email protected]>
* r600g: Only set PA_SC_EDGERULE on rv770 and greater.Tilman Sauerbeck2010-09-171-2/+14
| | | | | | This is what xf86-video-ati and r600c do. Signed-off-by: Tilman Sauerbeck <[email protected]>
* r600g: Added DB_SHADER_CONTROL defines.Tilman Sauerbeck2010-09-174-6/+46
| | | | Signed-off-by: Tilman Sauerbeck <[email protected]>
* r600g: Formatting fixes.Tilman Sauerbeck2010-09-171-27/+26
| | | | Signed-off-by: Tilman Sauerbeck <[email protected]>
* glsl2: Add flags to enable variable index loweringIan Romanick2010-09-175-8/+82
|
* glsl2: Refactor testing for whether a deref is of a matrix or arrayIan Romanick2010-09-171-11/+12
|
* glsl: add pass to lower variable array indexing to conditional assignmentsLuca Barbieri2010-09-175-0/+317
| | | | | | | | | | | | | | | | | | | | | | | | | | Currenly GLSL happily generates indirect addressing of any kind of arrays. Unfortunately DirectX 9 GPUs are not guaranteed to support any of them in general. This pass fixes that by lowering such constructs to a binary search on the values, followed at the end by vectorized generation of equality masks, and 4 conditional assignments for each mask generation. Note that this requires the ir_binop_equal change so that we can emit SEQ to generate the boolean masks. Unfortunately, ir_structure_splitting is too dumb to turn the resulting constant array references to individual variables, so this will need to be added too before this pass can actually be effective for temps. Several patches in the glsl2-lower-variable-indexing were squashed into this commit. These patches fix bugs in Luca's original implementation, and the individual patches can be seen in that branch. This was done to aid bisecting in the future. Signed-off-by: Ian Romanick <[email protected]>
* r600g: oops got the use_mem_constant the wrong way around.Dave Airlie2010-09-181-1/+1
| | | | this fixes evergreen gears again.
* r600g: use calloc for ctx bo allocationsDave Airlie2010-09-171-1/+1
| | | | since the reference code relies on these being NULL.
* r600g: fixup map flushing.Dave Airlie2010-09-171-5/+9
| | | | | | long lived maps were getting removed when they shouldn't this tries to avoid that problem by only adding to the flush list on unmap.
* r600g: add upload manager support.Dave Airlie2010-09-176-47/+223
| | | | | | this add support for the upload manager for uploading user vbo/index buffers. this provides a considerable speedup in q3 type games.
* r600g: add winsys bo caching.Dave Airlie2010-09-174-31/+24
| | | | | | | this adds the bo caching layer and uses it for vertex/index/constant bos. ctx needs to take references on hw bos so the flushing works okay, also needs to flush the maps.
* r600g: add support for kernel boDave Airlie2010-09-1710-50/+352
| | | | this moves to using a pb bufmgr instead of kernel bos directly.
* r600g: use malloc bufmgr for constant buffersDave Airlie2010-09-173-1/+9
|
* r600g: move constant buffer creation behind winsys abstraction.Dave Airlie2010-09-1712-55/+65
| | | | this paves the way for moving to pb bufmgrs now.
* libgl-xlib: Remove unused st_api_create_OpenGL.Chia-I Wu2010-09-171-8/+0
| | | | st/egl no longer relies on libGL for OpenGL support.
* targets/egl: Use C++ compiler to link GL/ES state trackers.Chia-I Wu2010-09-171-3/+10
| | | | | Otherwise, applications compiled with C compiler might have trouble using them.
* dri/nv10: Fix the CLAMP texture wrap mode.Francisco Jerez2010-09-171-2/+1
|
* tgsi/sse: fix aos_to_soa() loop to handle num_inputs==0Brian Paul2010-09-161-6/+9
| | | | | | | | | Basically, change the loop from: do {...} while (--num_inputs != 0) into: while (num_inputs != 0) { ... --num_inputs; } Fixes fd.o bug 29987.
* r600g: attempt to abstract kernel bos from pipe driver.Dave Airlie2010-09-1719-199/+272
| | | | | | introduce an abstraction layer between kernel bos and the winsys BOs. this is to allow plugging in pb manager with minimal disruption to pipe driver.
* r600g: hide radeon_ctx inside winsys.Dave Airlie2010-09-178-56/+42
| | | | no need for this info to be exported to pipe driver.
* gallivm: Remove unnecessary header.Vinson Lee2010-09-161-1/+0
|
* gallivm: fix wrong return value in bitwise functionsBrian Paul2010-09-161-3/+3
|
* gallivm: Clamp indirect register indices to file_max.José Fonseca2010-09-161-60/+71
| | | | Prevents crashes with bogus data, or bad shader translation.
* gallivm: Start collecting bitwise arithmetic helpers in a new module.José Fonseca2010-09-168-32/+263
|
* gallivm: Fix address register swizzle.José Fonseca2010-09-161-2/+1
| | | | | | | | | | We're actually doing a double swizzling: indirect_reg->Swizzle[indirect_reg->SwizzleX] instead of simply indirect_reg->SwizzleX
* meta: Don't bind the created texture object in init_temp_texture().Francisco Jerez2010-09-161-1/+0
| | | | | | | | | | | This function is executed outside _mesa_meta_begin/end(), that means that e.g. _mesa_meta_Bitmap() clobbers the texturing state because it changes the currently active texture object. There's no need to bind the new texture when it's created, it's done again later anyway (from setup_drawpix/copypix_texture()). Signed-off-by: Brian Paul <[email protected]>
* mesa: include mfeatures.h in formats.cBrian Paul2010-09-161-0/+1
| | | | | Otherwise, FEATURE_EXT_texture_sRGB was undefined. This is (part of?) the fix for fd.o bug 30177.
* r300g/swtcl: fix CS overrunMarek Olšák2010-09-162-8/+28
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=29901
* dri/nouveau: Cleanup references to the old FBOs on glMakeCurrent().Francisco Jerez2010-09-161-16/+8
|
* dri/nouveau: Don't reemit the BO state in nouveau_state_emit().Francisco Jerez2010-09-162-5/+3
|
* dri/nouveau: Don't request a fake front unnecessarily.Francisco Jerez2010-09-165-17/+32
|
* dri/nouveau: Fix glRenderbufferStorage with DEPTH_COMPONENT as internal format.Francisco Jerez2010-09-161-0/+1
|
* dri/nouveau: Add some more extensions.Francisco Jerez2010-09-163-0/+4
|
* dri/nouveau: Update nouveau_class.h.Francisco Jerez2010-09-161-20/+20
|
* dri/nv04: Fix provoking vertex.Francisco Jerez2010-09-161-2/+2
|
* dri/nv04: Fix maximum texture size.Francisco Jerez2010-09-161-0/+1
|
* dri/nv04: Fix up color mask.Francisco Jerez2010-09-161-1/+5
|
* dri/nv04: Align SIFM transfer dimensions.Francisco Jerez2010-09-161-1/+1
|
* dri/nv04: Mipmapping fixes.Francisco Jerez2010-09-162-15/+21
|
* dri/nv04: Fix PGRAPH_ERRORs when running OA.Francisco Jerez2010-09-161-1/+5
|
* dri/nv04: Enable eng3dm for A8/L8 textures.Andrew Randrianasulu2010-09-161-4/+16
| | | | Signed-off-by: Francisco Jerez <[email protected]>
* dri/nv04: Don't expose ARB_texture_env_combine/dot3.Andrew Randrianasulu2010-09-163-2/+4
| | | | Signed-off-by: Francisco Jerez <[email protected]>
* llvmpipe: add DEBUG_FS to dump variant informationKeith Whitwell2010-09-163-1/+3
|
* llvmpipe: add LP_PERF flag to disable various aspects of rasterizationKeith Whitwell2010-09-168-6/+90
| | | | | | | | Allows disabling various operations (mainly texture-related, but will grow) to try & identify bottlenecks. Unlike LP_DEBUG, this is active even in release builds - which is necessary for performance investigation.