summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga
Commit message (Collapse)AuthorAgeFilesLines
* svga: reduce MAX_DMA_SIZE to 4MBBrian Paul2011-03-011-1/+1
|
* svga: add assertions in svga_shader_type()Brian Paul2011-02-281-2/+5
|
* svga: Ensure rendertargets and textures are always rebound at every command ↵José Fonseca2011-02-244-9/+138
| | | | | | | | buffer start. The svga_update_state() mechanism is inadequate as it will always end up flushing the primitives before processing the SVGA_NEW_COMMAND_BUFFER dirty state flag.
* svga: Remove some remaining fake S3TC rendering support.José Fonseca2011-02-211-4/+0
|
* svga: Fix NULL dereference.José Fonseca2011-02-183-7/+9
| | | | Probably introduced with the surface view move from screen to context.
* svga: Ensure pending drawing commands other surface operations are emitted ↵José Fonseca2011-02-188-17/+40
| | | | | | | | | before DMAs. This behavior was last when moving the transfers to the contexts. This fixes several piglit failures, which were reading the color renderbuffer before the draw operations were emitted.
* svga: Cannot use negate or abs on source to dsx/dsy instructions.José Fonseca2011-02-181-1/+19
|
* svga: Ensure SWTNL is created after HWTNL.José Fonseca2011-02-181-5/+4
| | | | | Matches the internal driver layering, and prevents null svga->hwtnl dereferencing from inside the swtnl.
* svga: Ensure LRP's restrictions are observed in all uses.José Fonseca2011-02-181-38/+51
| | | | The dst reg must be a temporary, and not be the same as src0 or src2.
* svga: Preserve src swizzles in submit_op2/3/4.José Fonseca2011-02-181-25/+45
| | | | | Several opcodes require scalar swizzle, and this requirement was being was not being observed when creating temporaries for other reasons.
* svga: Disable surface cache for texturesJakob Bornecrantz2011-02-181-1/+2
| | | | Signed-off-by: Jakob Bornecrantz <[email protected]>
* svga: Describe svga_sampler_views for refcnt debuggingJakob Bornecrantz2011-02-182-1/+21
| | | | Signed-off-by: Jakob Bornecrantz <[email protected]>
* svga: Make sure that refcnt debugger gets the correct backtrace for createJakob Bornecrantz2011-02-182-0/+9
| | | | Signed-off-by: Jakob Bornecrantz <[email protected]>
* gallium/svga: Fix unnecessary swtnl fallbacksThomas Hellstrom2011-02-181-0/+1
| | | | | | | | When we drop the in_swtnl_draw flag, we must force a rerun of update_need_swtnl to reset the need_swtnl flag to its correct value outside of a swtnl vbo draw. Signed-off-by: Thomas Hellstrom <[email protected]>
* svga: Don't use more than one constant per IFC instruction.José Fonseca2011-02-171-2/+15
|
* svga: flush when transitioning between HW and SW rendering pathsBrian Paul2011-02-162-0/+11
| | | | To avoid mixing HW and SW rendering with the same vertex buffer.
* svga: use TRUE/FALSE instead of 0/1Brian Paul2011-02-161-4/+4
| | | | | Some fields are booleans, others are bitmasks. Use TRUE/FALSE to clarify what's what.
* svga: fix incorrect commentBrian Paul2011-02-161-1/+1
|
* svga: dimension the dirty[] array with SVGA_STATE_MAXBrian Paul2011-02-161-1/+3
|
* svga: disable a debug_printf() callBrian Paul2011-02-161-3/+6
|
* svga: Proper redefine_user_buffer implementation.José Fonseca2011-02-164-1/+58
| | | | Unfortunately still not enough to make GoogleEarth happy.
* svga: Don't fake DXT compression ability.José Fonseca2011-02-162-17/+0
|
* gallium: add usage parameter to pipe_buffer_createMarek Olšák2011-02-153-0/+5
| | | | | And set a reasonable buffer usage flag everywhere instead of just PIPE_USAGE_DEFAULT.
* gallium: notify drivers about possible changes in user buffer contentsMarek Olšák2011-02-141-0/+2
| | | | Also implement the redefine_user_buffer hook in the drivers.
* gallium: remove pipe_vertex_buffer::max_indexMarek Olšák2011-02-141-1/+1
| | | | | This is redundant to pipe_draw_info::max_index and doesn't really fit in the optimizations I plan.
* svga: Set the appropriate flags when creating sampler/surface views.José Fonseca2011-02-143-5/+18
|
* svga: disable a debug_printf() callBrian Paul2011-02-111-5/+9
|
* svga: comments and debug codeBrian Paul2011-02-111-0/+10
|
* svga: more comments for need_pipeline fieldBrian Paul2011-02-111-1/+4
|
* svga: add max DMA size check in svga_winsys_buffer_create()Brian Paul2011-02-111-0/+10
| | | | | | | This fixes a problem when trying to use large (2K x 2K) texture images. We'll DMA the image in chunks. Patch written by Jose.
* svga: remove old comment, remove extra whitespaceBrian Paul2011-02-111-4/+0
|
* svga: Enable the draw pipeline for smooth lines.José Fonseca2011-02-111-0/+5
| | | | Spotted by Brian Paul.
* svga: Don't use the draw pipeline for non-AA lines with a fractional width.José Fonseca2011-02-111-2/+1
| | | | Spotted by Jakob Bornecrantz.
* svga: Stippled lines can also be drawn with triangles.José Fonseca2011-02-112-2/+3
|
* svga: Don't advertise pixel shader addr register support.José Fonseca2011-02-091-3/+8
| | | | It's not fully supported.
* svga: rename a couple sampler, sampler view functionsBrian Paul2011-02-031-7/+9
|
* gallium/svga: added debug code for dumping framebuffer images (disabled)Brian Paul2011-02-031-0/+23
|
* svga: Fix resource leak; undo temporary workaround.José Fonseca2011-02-032-10/+4
| | | | | | Leak was introduced when fixing strict aliasing violation in this code: the reference counting was preserved, but the destructor call on zero reference count was not.
* svga: Temporarily disable buffer DMA upload coalescing.José Fonseca2011-02-031-0/+7
| | | | See comment for more details.
* svga: Don't call swc->flush directly.José Fonseca2011-02-031-1/+1
| | | | | Only svga_context_flush should do it, to ensure upload commands are not submitted to hardware in an inconsistent state.
* svga: Add an assert to catch reentrancy.José Fonseca2011-02-031-0/+1
|
* svga: Flush upload buffers or we get assertsJosé Fonseca2011-02-022-5/+7
| | | | Based on work from Jakob Bornecrantz, Michel Dänzer, and Brian Paul.
* svga: Fix translation of TGSI SSG opcode.Michel Dänzer2011-01-311-1/+39
| | | | | | | SVGA3D only supports SGN for vertex shaders, and this requires two additional temporary registers for intermediate results. For fragment shaders, lower to two CMPs and one ADD.
* svga: TEXLDL opcode dst/src register information is correct.Michel Dänzer2011-01-311-1/+1
|
* svga: Print the number and mnemonic of the opcode we're missing information for.Michel Dänzer2011-01-311-0/+2
| | | | Makes it easier to figure out which opcode it's about.
* svga: Add more swrast debugingJakob Bornecrantz2011-01-254-4/+34
|
* svga: Use get once helpers for context debug envsJakob Bornecrantz2011-01-251-4/+8
|
* svga: Ensure that the wrong vdecls don't get used in swtnl pathJakob Bornecrantz2011-01-063-0/+19
| | | | | | | The draw module set new state that didn't require swtnl which caused need_swtnl to be unset. This caused the call from to svga_update_state(svga, SVGA_STATE_SWTNL_DRAW) from the vbuf backend to overwrite the vdecls we setup there to be overwritten with the real buffers vdecls.
* u_upload_mgr: new featuresMarek Olšák2011-01-062-3/+8
| | | | | | | | | | | | | | - Added a parameter to specify a minimum offset that should be returned. r300g needs this to better implement user buffer uploads. This weird requirement comes from the fact that the Radeon DRM doesn't support negative offsets. - Added a parameter to notify a driver that the upload flush occured. A driver may skip buffer validation if there was no flush, resulting in a better performance. - Added a new upload function that returns a pointer to the upload buffer directly, so that the buffer can be filled e.g. by the translate module.
* svga, glhd: Remove incorrect assert and add noteJakob Bornecrantz2010-12-161-1/+0
| | | | | Stride can be lower then the size of the attribute. But should probably be aligned to component size atleast for floats.