Commit Graph

33505 Commits

Author SHA1 Message Date
José Fonseca 4e8154e866 draw: Fix cache elt_bias implementation. 2010-04-20 10:32:06 +02:00
José Fonseca 493a1bb822 gallium/docs: Make it clear that minIndex, maxIndex is exclusively a index buffer characteristic.
Unlike the indexBias which is specific to a draw call.

This are the semantics of both D3D and GL ARB_draw_elements_base_vertex
extension.
2010-04-20 10:22:28 +02:00
José Fonseca f1d3f42c47 draw: Fix typo resulting from bad regular expression in index bias addition. 2010-04-20 10:19:42 +02:00
José Fonseca dfadf5a579 r300g: Adapt for index bias interface change. 2010-04-19 18:18:45 +02:00
José Fonseca 7c785c0d2c nvfx: Adapt for index bias interface change. 2010-04-19 18:18:28 +02:00
José Fonseca f6f7324bbf nv50: Adapt for index bias interface change. 2010-04-19 18:17:45 +02:00
José Fonseca 583f51ba4b retrace: Support index bias. 2010-04-19 18:17:11 +02:00
José Fonseca 17a43c1718 mesa/st: Update for index bias interface change. 2010-04-19 18:16:57 +02:00
José Fonseca 5620216c98 st/python: Use index bias. 2010-04-19 18:16:34 +02:00
José Fonseca 8b658580ee trace: Implement index bias. 2010-04-19 18:16:20 +02:00
José Fonseca 9515b78859 svga: Implement index bias.
Untested.
2010-04-19 18:16:08 +02:00
José Fonseca 989861fc5e softpipe: Implement index bias. 2010-04-19 18:15:39 +02:00
José Fonseca d27a53d469 llvmpipe: Implement index bias. 2010-04-19 18:15:11 +02:00
José Fonseca 382e9cc07b identity: Implement index bias. 2010-04-19 18:15:05 +02:00
José Fonseca 9ca0f45d8a i965g: Implement index bias. 2010-04-19 18:14:58 +02:00
José Fonseca 1e7facdd8f i915: Implement index bias. 2010-04-19 18:14:48 +02:00
José Fonseca f8d4638a09 failover: Implement index bias. 2010-04-19 18:14:35 +02:00
José Fonseca 150d12679d cell: Implement index bias. 2010-04-19 18:14:23 +02:00
José Fonseca 2197fac47c draw: Implement index bias. 2010-04-19 18:14:04 +02:00
José Fonseca 857c7c7ca2 docs: Document indexBias. 2010-04-19 15:08:14 +02:00
José Fonseca c184da9505 gallium: Add index bias parameter to draw_elements and friends.
indexBias corresponds to:
- BaseVertexIndex parameter of D3D9's
  IDirect3DDevice9::DrawIndexedPrimitive method
- BaseVertexLocation parameter of ID3D10Device::DrawIndexed

Although a positive indexBias can be easily be implemented in Gallium by
adding indexBias*stride to each vertex buffer base offset, a negative
indexBias cannot, as the final vertex buffer offset could be negative.

I'm not aware of this functionality being exposed to GL drivers, so for
now all hardware drivers will just assert(indexBias == 0).

See also:
- http://msdn.microsoft.com/en-us/library/bb174369.aspx (D3D9)
- http://msdn.microsoft.com/en-us/library/ff556126.aspx (D3D10 DDI)
2010-04-19 08:56:46 +02:00
José Fonseca 4b148bcf5e llvmpipe: Emit only the vertex attributes necessary for the FS, and ensure the first one is always position.
With this we correctly handle vertex shaders whose output position is not
in index zero.
2010-04-18 10:36:28 +02:00
José Fonseca 4272c01fbf softpipe: Preserve/check the signal of the number of scanlines in an edge.
It can become negative in some weird triangles.
2010-04-18 10:36:28 +02:00
José Fonseca b609cfc7c9 draw: Cosmetic cleanups and comments. 2010-04-18 10:36:28 +02:00
José Fonseca d036e9312f retrace: Fix vertex/index/constant buffer dumping. 2010-04-18 10:36:28 +02:00
José Fonseca 53c3c914a7 trace: Handle transfers with zero strides correctly. 2010-04-18 10:36:28 +02:00
José Fonseca 4b95c9549d st/python: Set the bind flag for the default texture. 2010-04-18 10:36:28 +02:00
José Fonseca 5c898af870 retrace: Remove deprecated code. 2010-04-18 10:36:28 +02:00
José Fonseca 6aae062bdf mesa: Restore comment too. 2010-04-18 10:36:28 +02:00
Vinson Lee 4e98116c23 glsl: Fix handling of OPCODE_PRINT for no registers case.
A register file value is unsigned so could never be -1. A
value of 0 also aliased to PROGRAM_TEMPORARY.

If an OPCODE_PRINT has no registers to print, set the register
file value to PROGRAM_UNDEFINED and check for that value when
executing this instruction.
2010-04-18 00:11:49 -07:00
Vinson Lee 4485dd8a3e i965: Assert that an OPCODE_IF was seen before an OPCODE_ELSE. 2010-04-17 23:48:37 -07:00
Vinson Lee 010f81f32b st/dri: Check for NULL before dereference and assignment. 2010-04-17 23:40:14 -07:00
Vinson Lee 63c6d6add1 nvfx: Initialize variables. 2010-04-17 23:25:47 -07:00
Vinson Lee 0268e8984c r300g: Cast rbuf->user_buffer to 'uint8_t *' before arithmetic.
Fixes this SCons build error.
"pointer of type 'void *' uses in arithmetic"
2010-04-17 22:44:35 -07:00
Vinson Lee fe52b585f2 nvfx: Remove unused variables. 2010-04-17 22:23:25 -07:00
Vinson Lee 891e9d6f3f nv50: Initialize variables.
Silences GCC uninitialized variable warnings.
2010-04-17 21:21:31 -07:00
Vinson Lee b054d7912d nv50: Remove unused variable. 2010-04-17 20:39:03 -07:00
Jakob Bornecrantz 5db285b742 i915g: Remove broken power of two function 2010-04-18 02:50:35 +01:00
Jakob Bornecrantz d14c4ca209 i915g: Add some helper functions
Mostly to make the lines not so long.
2010-04-18 02:50:35 +01:00
Jakob Bornecrantz ed94e744d3 i915g: Fix cubemap layouts 2010-04-18 02:50:35 +01:00
Jakob Bornecrantz 762ed4db47 i915g: Clean and add some debug printing
Disabled by default
2010-04-18 02:50:35 +01:00
Jakob Bornecrantz 29ff6e87f5 gallium/tests: Make trivial apps depend on libs 2010-04-18 02:50:35 +01:00
Marek Olšák 0b4df63609 r300g: various other cleanups
It seems to me that the resource management code is the most blurry.

Also some of my notes about fastfill are wrong, removing them too.
2010-04-18 02:56:09 +02:00
Marek Olšák d3e7dfc1fd r300g: inline screen_buffer functions 2010-04-18 02:56:09 +02:00
Marek Olšák 9f2f6096a8 r300g: remove unused declarations 2010-04-18 02:56:09 +02:00
Marek Olšák 5b609badf7 r300g: add debugging options "notiling" and "noimmd" (for testing)
notiling = Disable texture tiling
noimmd = Disable immediate mode (this optimization was really worth it!)
2010-04-18 02:56:09 +02:00
Marek Olšák 4185d9770f r300g: remove r300_transfer::ctx 2010-04-18 02:56:09 +02:00
Marek Olšák bb4f5fff0c r300g: remove use of c++ keywords 2010-04-18 02:56:09 +02:00
Marek Olšák c383defdaa r300g: always create microtiled zbuffer regardless of texture dimensions 2010-04-18 02:56:09 +02:00
Vinson Lee 65a3c316ba i915g: Remove unnecessary headers. 2010-04-17 15:47:45 -07:00