Commit Graph

33490 Commits

Author SHA1 Message Date
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
Vinson Lee e68c6be2f6 nvfx: Remove unnecessary headers. 2010-04-17 15:14:47 -07:00
Vinson Lee c5e4a6dc9d nv50: Remove redundant assignment. 2010-04-17 14:49:40 -07:00
Vinson Lee f426295521 i965g: Remove redundant assert. 2010-04-17 14:45:49 -07:00
Vinson Lee 35aae6839e os: Implement pipe_barrier for POSIX platforms without pthread_barrier_t.
This patch was tested on Mac OS X.
2010-04-17 14:24:23 -07:00
Jakob Bornecrantz 44bafca1a0 i915g: Add a software only debuging winsys 2010-04-17 21:13:23 +01:00
Jakob Bornecrantz 3e3d6864da gallium/tests: Fix trivial examples 2010-04-17 21:13:23 +01:00
Jakob Bornecrantz 08f2a6cad1 gallium/util: Ignores 2010-04-17 21:13:22 +01:00
Jakob Bornecrantz a656f2f0f3 progs/tests: Ignores 2010-04-17 21:13:22 +01:00
Vinson Lee 0a2ae64b77 r300/compiler: Remove unnecessary header. 2010-04-17 12:13:19 -07:00
Vinson Lee f6f78fac9e draw llvm: Remove unnecessary header. 2010-04-16 23:25:25 -07:00
Vinson Lee d6c024ea3f llvmpipe: Remove unnecessary header. 2010-04-16 23:08:52 -07:00
Vinson Lee 6be186a6fa r300/compiler: Add radeon_program_tex.c to SCons build.
This was missed in commit f8a1418680.
2010-04-16 22:58:49 -07:00
Marek Olšák 411d506332 r300/compiler: add emulation of all mirrored-clamp wrap modes for NPOT textures 2010-04-17 02:43:47 +02:00
Marek Olšák f91a06eed2 r300/compiler: replace mirrored-repeat emulation with a faster version
Also, the Negate bitfield was 1 instead of RC_MASK_XYZ in the previous
version, causing incorrect rendering.
2010-04-17 02:11:46 +02:00
Marek Olšák a94942e379 r300/compiler: add handy definitions for XYZ0 and smeared half swizzling 2010-04-17 01:31:25 +02:00