Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gallium: add fallback for copying buffers to all drivers | Marek Olšák | 2011-04-21 | 1 | -0/+9 |
| | | | | | | Just to keep drivers working. Reviewed-by: Jakob Bornecrantz <[email protected]> | ||||
* | svga: defined QSZ in terms of SVGA3D_MAX_DRAW_PRIMITIVE_RANGES | Brian Paul | 2011-04-13 | 1 | -1/+3 |
| | |||||
* | svga: define SVGA3D_MAX_DRAW_PRIMITIVE_RANGES and update comments | Brian Paul | 2011-04-13 | 1 | -4/+12 |
| | |||||
* | svga: Rebind framebuffer and tss bindings strictly when necessary. | José Fonseca | 2011-04-12 | 6 | -26/+45 |
| | | | | | | | | | | The earlier change to ensure rendertargets and textures are always rebound at every command buffer start had the downside of making successive flushes no longer no-ops, as a command buffer with merely the rebinding commands were being unnecessarily sent to the vGPU. This change only re-emits the bindings when necessary, by keeping track of the need to rebind outside of the dirty state update mechanism. | ||||
* | svga: another tweak to adjust_x term (use -0.5) | Brian Paul | 2011-04-07 | 1 | -1/+1 |
| | |||||
* | gallium: set PIPE_CAP_MIXED_COLORBUFFER_FORMATS in some drivers | Marek Olšák | 2011-04-01 | 1 | -0/+2 |
| | |||||
* | svga: adjust triangle rasterization offset | Brian Paul | 2011-03-24 | 1 | -1/+1 |
| | | | | Fixes minor sub-pixel positioning error in some apps. | ||||
* | svga: Avoid synchronizing when doing piecewise upload of textures. | José Fonseca | 2011-03-21 | 1 | -7/+8 |
| | |||||
* | svga: Undo the DMA buffer size limiting. | José Fonseca | 2011-03-21 | 1 | -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é Fonseca | 2011-03-16 | 2 | -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é Fonseca | 2011-03-16 | 5 | -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é Fonseca | 2011-03-16 | 2 | -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é Fonseca | 2011-03-15 | 1 | -3/+10 |
| | |||||
* | svga: Update svga_winsys_screen::buffer_map comments. | José Fonseca | 2011-03-15 | 1 | -2/+2 |
| | |||||
* | svga: Ensure DMA commands are serialized with unsynchronized flag is unset. | José Fonseca | 2011-03-15 | 3 | -19/+113 |
| | |||||
* | gallium: remove flags from the flush function | Marek Olšák | 2011-03-11 | 2 | -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_supported | Marek Olšák | 2011-03-11 | 1 | -2/+1 |
| | |||||
* | gallium: cleanup fence_signalled and fence_finish | Marek Olšák | 2011-03-11 | 2 | -8/+6 |
| | | | | So that they don't have the driver-specific param and return type. | ||||
* | gallium: kill is_resource_referenced | Marek Olšák | 2011-03-11 | 3 | -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é Fonseca | 2011-03-11 | 3 | -12/+38 |
| | | | | DMAs. | ||||
* | Revert "gallium/svga: Only upload parts of vertexarrays that are actually used" | Thomas Hellstrom | 2011-03-10 | 5 | -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 used | Thomas Hellstrom | 2011-03-10 | 5 | -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é Fonseca | 2011-03-09 | 3 | -0/+11 |
| | |||||
* | gallium/svga: Don't replace user vertex buffer with uploaded copy | Thomas Hellstrom | 2011-03-09 | 1 | -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_finish | Marek Olšák | 2011-03-08 | 2 | -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 4MB | Brian Paul | 2011-03-01 | 1 | -1/+1 |
| | |||||
* | svga: add assertions in svga_shader_type() | Brian Paul | 2011-02-28 | 1 | -2/+5 |
| | |||||
* | svga: Ensure rendertargets and textures are always rebound at every command ↵ | José Fonseca | 2011-02-24 | 4 | -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é Fonseca | 2011-02-21 | 1 | -4/+0 |
| | |||||
* | svga: Fix NULL dereference. | José Fonseca | 2011-02-18 | 3 | -7/+9 |
| | | | | Probably introduced with the surface view move from screen to context. | ||||
* | svga: Ensure pending drawing commands other surface operations are emitted ↵ | José Fonseca | 2011-02-18 | 8 | -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é Fonseca | 2011-02-18 | 1 | -1/+19 |
| | |||||
* | svga: Ensure SWTNL is created after HWTNL. | José Fonseca | 2011-02-18 | 1 | -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é Fonseca | 2011-02-18 | 1 | -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é Fonseca | 2011-02-18 | 1 | -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 textures | Jakob Bornecrantz | 2011-02-18 | 1 | -1/+2 |
| | | | | Signed-off-by: Jakob Bornecrantz <[email protected]> | ||||
* | svga: Describe svga_sampler_views for refcnt debugging | Jakob Bornecrantz | 2011-02-18 | 2 | -1/+21 |
| | | | | Signed-off-by: Jakob Bornecrantz <[email protected]> | ||||
* | svga: Make sure that refcnt debugger gets the correct backtrace for create | Jakob Bornecrantz | 2011-02-18 | 2 | -0/+9 |
| | | | | Signed-off-by: Jakob Bornecrantz <[email protected]> | ||||
* | gallium/svga: Fix unnecessary swtnl fallbacks | Thomas Hellstrom | 2011-02-18 | 1 | -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é Fonseca | 2011-02-17 | 1 | -2/+15 |
| | |||||
* | svga: flush when transitioning between HW and SW rendering paths | Brian Paul | 2011-02-16 | 2 | -0/+11 |
| | | | | To avoid mixing HW and SW rendering with the same vertex buffer. | ||||
* | svga: use TRUE/FALSE instead of 0/1 | Brian Paul | 2011-02-16 | 1 | -4/+4 |
| | | | | | Some fields are booleans, others are bitmasks. Use TRUE/FALSE to clarify what's what. | ||||
* | svga: fix incorrect comment | Brian Paul | 2011-02-16 | 1 | -1/+1 |
| | |||||
* | svga: dimension the dirty[] array with SVGA_STATE_MAX | Brian Paul | 2011-02-16 | 1 | -1/+3 |
| | |||||
* | svga: disable a debug_printf() call | Brian Paul | 2011-02-16 | 1 | -3/+6 |
| | |||||
* | svga: Proper redefine_user_buffer implementation. | José Fonseca | 2011-02-16 | 4 | -1/+58 |
| | | | | Unfortunately still not enough to make GoogleEarth happy. | ||||
* | svga: Don't fake DXT compression ability. | José Fonseca | 2011-02-16 | 2 | -17/+0 |
| | |||||
* | gallium: add usage parameter to pipe_buffer_create | Marek Olšák | 2011-02-15 | 3 | -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 contents | Marek Olšák | 2011-02-14 | 1 | -0/+2 |
| | | | | Also implement the redefine_user_buffer hook in the drivers. | ||||
* | gallium: remove pipe_vertex_buffer::max_index | Marek Olšák | 2011-02-14 | 1 | -1/+1 |
| | | | | | This is redundant to pipe_draw_info::max_index and doesn't really fit in the optimizations I plan. |