summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/svga
AgeCommit message (Collapse)Author
2011-02-28svga: add assertions in svga_shader_type()Brian Paul
2011-02-24svga: Ensure rendertargets and textures are always rebound at every command ↵José Fonseca
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.
2011-02-21svga: Remove some remaining fake S3TC rendering support.José Fonseca
2011-02-18svga: Fix NULL dereference.José Fonseca
Probably introduced with the surface view move from screen to context.
2011-02-18svga: Ensure pending drawing commands other surface operations are emitted ↵José Fonseca
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.
2011-02-18svga: Cannot use negate or abs on source to dsx/dsy instructions.José Fonseca
2011-02-18svga: Ensure SWTNL is created after HWTNL.José Fonseca
Matches the internal driver layering, and prevents null svga->hwtnl dereferencing from inside the swtnl.
2011-02-18svga: Ensure LRP's restrictions are observed in all uses.José Fonseca
The dst reg must be a temporary, and not be the same as src0 or src2.
2011-02-18svga: Preserve src swizzles in submit_op2/3/4.José Fonseca
Several opcodes require scalar swizzle, and this requirement was being was not being observed when creating temporaries for other reasons.
2011-02-18svga: Disable surface cache for texturesJakob Bornecrantz
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2011-02-18svga: Describe svga_sampler_views for refcnt debuggingJakob Bornecrantz
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2011-02-18svga: Make sure that refcnt debugger gets the correct backtrace for createJakob Bornecrantz
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2011-02-18gallium/svga: Fix unnecessary swtnl fallbacksThomas Hellstrom
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 <thellstrom@vmware.com>
2011-02-17svga: Don't use more than one constant per IFC instruction.José Fonseca
2011-02-16svga: flush when transitioning between HW and SW rendering pathsBrian Paul
To avoid mixing HW and SW rendering with the same vertex buffer.
2011-02-16svga: use TRUE/FALSE instead of 0/1Brian Paul
Some fields are booleans, others are bitmasks. Use TRUE/FALSE to clarify what's what.
2011-02-16svga: fix incorrect commentBrian Paul
2011-02-16svga: dimension the dirty[] array with SVGA_STATE_MAXBrian Paul
2011-02-16svga: disable a debug_printf() callBrian Paul
2011-02-16svga: Proper redefine_user_buffer implementation.José Fonseca
Unfortunately still not enough to make GoogleEarth happy.
2011-02-16svga: Don't fake DXT compression ability.José Fonseca
2011-02-15gallium: add usage parameter to pipe_buffer_createMarek Olšák
And set a reasonable buffer usage flag everywhere instead of just PIPE_USAGE_DEFAULT.
2011-02-14gallium: notify drivers about possible changes in user buffer contentsMarek Olšák
Also implement the redefine_user_buffer hook in the drivers.
2011-02-14gallium: remove pipe_vertex_buffer::max_indexMarek Olšák
This is redundant to pipe_draw_info::max_index and doesn't really fit in the optimizations I plan.
2011-02-14svga: Set the appropriate flags when creating sampler/surface views.José Fonseca
2011-02-11svga: disable a debug_printf() callBrian Paul
2011-02-11svga: comments and debug codeBrian Paul
2011-02-11svga: more comments for need_pipeline fieldBrian Paul
2011-02-11svga: add max DMA size check in svga_winsys_buffer_create()Brian Paul
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.
2011-02-11svga: remove old comment, remove extra whitespaceBrian Paul
2011-02-11svga: Enable the draw pipeline for smooth lines.José Fonseca
Spotted by Brian Paul.
2011-02-11svga: Don't use the draw pipeline for non-AA lines with a fractional width.José Fonseca
Spotted by Jakob Bornecrantz.
2011-02-11svga: Stippled lines can also be drawn with triangles.José Fonseca
2011-02-09svga: Don't advertise pixel shader addr register support.José Fonseca
It's not fully supported.
2011-02-03svga: rename a couple sampler, sampler view functionsBrian Paul
2011-02-03gallium/svga: added debug code for dumping framebuffer images (disabled)Brian Paul
2011-02-03svga: Fix resource leak; undo temporary workaround.José Fonseca
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.
2011-02-03svga: Temporarily disable buffer DMA upload coalescing.José Fonseca
See comment for more details.
2011-02-03svga: Don't call swc->flush directly.José Fonseca
Only svga_context_flush should do it, to ensure upload commands are not submitted to hardware in an inconsistent state.
2011-02-03svga: Add an assert to catch reentrancy.José Fonseca
2011-02-02svga: Flush upload buffers or we get assertsJosé Fonseca
Based on work from Jakob Bornecrantz, Michel Dänzer, and Brian Paul.
2011-01-31svga: Fix translation of TGSI SSG opcode.Michel Dänzer
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.
2011-01-31svga: TEXLDL opcode dst/src register information is correct.Michel Dänzer
2011-01-31svga: Print the number and mnemonic of the opcode we're missing information for.Michel Dänzer
Makes it easier to figure out which opcode it's about.
2011-01-25svga: Add more swrast debugingJakob Bornecrantz
2011-01-25svga: Use get once helpers for context debug envsJakob Bornecrantz
2011-01-06svga: Ensure that the wrong vdecls don't get used in swtnl pathJakob Bornecrantz
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.
2011-01-06u_upload_mgr: new featuresMarek Olšák
- 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.
2010-12-16svga, glhd: Remove incorrect assert and add noteJakob Bornecrantz
Stride can be lower then the size of the attribute. But should probably be aligned to component size atleast for floats.
2010-12-16svga: Minor debug text fixJakob Bornecrantz