summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga
Commit message (Collapse)AuthorAgeFilesLines
* svga: adjust triangle rasterization offsetBrian Paul2011-03-241-1/+1
| | | | Fixes minor sub-pixel positioning error in some apps.
* svga: Avoid synchronizing when doing piecewise upload of textures.José Fonseca2011-03-211-7/+8
|
* svga: Undo the DMA buffer size limiting.José Fonseca2011-03-211-13/+2
| | | | | | | Move this to the winsys, given it is not a virtual device limitation, but a limitation specific to certain winsyses. Also update debug message.
* svga: Leave any_user_vertex_buffers flag alone.José Fonseca2011-03-162-3/+0
| | | | | It is pointless to change, now that we don't replace user vertex buffer with uploaded copy, per commit 52e598d200108ab9cfc9c9d828bbebdc576e9703.
* svga: Hardcode SVGA_COMBINE_USERBUFFERS to 1.José Fonseca2011-03-165-38/+12
| | | | | | | | The code no longer supports otherwise -- it relies on buffers being uploaded via u_upload_mgr -- so make this clear. Also, there's no need to flush after draws from user buffers, given all user content should have been copied by then.
* svga: Use transfer information on buffer transfers.José Fonseca2011-03-162-107/+81
| | | | | | | | Should prevent the assert failure svga_buffer_flush_mapped_range: Assertion `sbuf->map.writing' failed. on nested transfers.
* svga: Tell the host to discard when doing writes without FLUSH_EXPLICIT.José Fonseca2011-03-151-3/+10
|
* svga: Update svga_winsys_screen::buffer_map comments.José Fonseca2011-03-151-2/+2
|
* svga: Ensure DMA commands are serialized with unsynchronized flag is unset.José Fonseca2011-03-153-19/+113
|
* gallium: remove flags from the flush functionMarek Olšák2011-03-112-19/+16
| | | | | | | | | | The drivers have been changed so that they behave as if all of the flags were set. This is already implicit in most hardware drivers and required for multiple contexts. Some state trackers were also abusing the PIPE_FLUSH_RENDER_CACHE flag to decide whether flush_frontbuffer should be called. New flag ST_FLUSH_FRONT has been added to st_api.h as a replacement.
* gallium: remove the geom_flags param from is_format_supportedMarek Olšák2011-03-111-2/+1
|
* gallium: cleanup fence_signalled and fence_finishMarek Olšák2011-03-112-8/+6
| | | | So that they don't have the driver-specific param and return type.
* gallium: kill is_resource_referencedMarek Olšák2011-03-113-64/+0
| | | | Only st/xorg used it and even incorrectly with regards to pipelined transfers.
* svga: Propagate discard/unsynchronized flags to the host when doing texture ↵José Fonseca2011-03-113-12/+38
| | | | DMAs.
* Revert "gallium/svga: Only upload parts of vertexarrays that are actually used"Thomas Hellstrom2011-03-105-48/+3
| | | | | | | | This reverts commit 6d4e337f3890105c7d8a2f132412c137d2570d25. The commit is incorrect. I'll rework it. Revert for now. Signed-off-by: Thomas Hellstrom <[email protected]>
* gallium/svga: Only upload parts of vertexarrays that are actually usedThomas Hellstrom2011-03-105-3/+48
| | | | | | | Make sure we only upload parts of vertex arrays that are actually used by a draw command. Signed-off-by: Thomas Hellstrom <[email protected]>
* svga: Add a new winsys entry point to query the hw version.José Fonseca2011-03-093-0/+11
|
* gallium/svga: Don't replace user vertex buffer with uploaded copyThomas Hellstrom2011-03-091-1/+2
| | | | | | | | | Do that later on when we set up the hwtnl state instead. This addresses a problem when we drop the uploaded copy due to a vb size change, it will remain referenced in svga->curr.vb[], and the new contents of the vb will never be uploaded. Signed-off-by: Thomas Hellstrom <[email protected]>
* gallium: add timeout parameter to fence_finishMarek Olšák2011-03-082-2/+4
| | | | | This is a follow-up to the ARB_sync patch for st/mesa and completes the ARB_sync implementation.
* 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
|