Commit Graph

169 Commits

Author SHA1 Message Date
José Fonseca
45dac0d82a Merge branch 'gallium-embedded' 2010-02-03 18:54:13 +00:00
Roland Scheidegger
8091e73cc2 docs: clean up TGSI_SEMANTIC_PSIZE description
there was some confusion between point size state and point size output.
2010-02-03 18:27:32 +01:00
Roland Scheidegger
c2b85e335d docs: fix point sprite documentation 2010-02-03 17:39:47 +01:00
Roland Scheidegger
4a4daa75a8 gallium: clean up point sprite rasterizer state
Don't need sprite coord origin per coord.
Also, don't need separate sprite enable bit - if all coords have it diabled,
then there are no point sprites (technically, there's a distinction in pre-GL3,
but it only differs in having more leniency in clamping to max size, something
the state tracker would need to handle and the hardware won't bother anyway).
Also, use packed field for the per-coord enables.
All in all, should save 3 dwords in rasterizer state (from 10 down to 7).
2010-02-03 17:25:14 +01:00
José Fonseca
976afaf98f gallium/docs: Document the OS module. 2010-02-03 15:56:36 +00:00
José Fonseca
bd03025621 gallium-docs: Fix typo. 2010-02-03 09:04:46 +00:00
Corbin Simpson
797dcc04e5 gallium/docs: Opcode refs.
There is a very real possibility that I may be enjoying this too much.
2010-02-02 17:07:26 -08:00
Corbin Simpson
17c2a44761 gallium/docs: TGSI notes on replication to dst, and also cleanups.
Slowly, surely, I'm making this better.
2010-02-02 17:03:42 -08:00
Corbin Simpson
62ca7b85ae gallium/docs: Start turning notes into docs.
Yeah, what's that? You can read it? It's got, hmm, *readability*? Nice,
ain't it. :3
2010-02-02 17:03:41 -08:00
Corbin Simpson
8580522b14 gallium/docs: Add opcode formatting. 2010-02-02 17:03:41 -08:00
Brian Paul
3e572eb25e gallium/docs: default Z texture tuple is (z,z,z,1) for OpenGL 2010-02-02 16:27:07 -07:00
Brian Paul
3a3d8fb72e gallium/docs: s/convensions/conventions/ 2010-02-02 16:20:26 -07:00
Corbin Simpson
516e7159ae gallium/docs: Did somebody call for a table? 2010-02-02 12:44:22 -08:00
Brian Paul
4778f46bb5 gallium/docs: table of texture formats and (x,y,z,w) tuples returned by TEX
Maybe someone can convert this into a real table instead of just
preformatted text.
2010-02-02 08:14:43 -07:00
Corbin Simpson
268cc5ff38 gallium-docs: Fix missing PIPE_CAPs.
Hmm, need to cross-ref those TGSI things. My work is never done... :3
2010-01-30 12:16:10 -08:00
Brian Paul
98f3f1c695 gallium: document pipe_context::get_query_result() 2010-01-29 14:01:34 -07:00
Luca Barbieri
6c403750d6 tgsi: add caps for fragment coord conventions (v3)
Changes in v3:
- Renumber caps to accomodate caps to add to master in the meantime
- Document caps
- Add unsupported caps to *_screen.c too

Changes in v2:
- Split for properties patch
- Use positive caps instead of negative caps

This adds 4 caps to indicate support of each of the fragment coord
conventions.

All drivers are also modifed to add the appropriate caps.

Some drivers were incorrectly using non-Gallium-default conventions,
and caps for them have them set so that they will behave correctly
after the later state tracker patches.

This drivers are softpipe/llvmpipe (uses integer rather than half
integer) and pre-nv50 Nouveau (uses lower left rather than upper left).

Other drivers might be broken. With this patchset, fixing them is
only a matter of exposing the appropriate caps that match the behavior
of the existing code.

Drivers are encouraged to support all conventions themselves for better
performance, and this feature is added to softpipe in a later patch.
2010-01-29 14:13:14 +01:00
Luca Barbieri
73317139a4 tgsi: add properties for fragment coord conventions (v3)
Changes in v3:
- Documented the new properties
- Added comments for property values
- Rebased to current master

Changes in v2:
- Caps are added in a separate, subsequent patch

This adds two TGSI fragment program properties that indicate the
fragment coord conventions.

The properties behave as described in the extension spec for
GL_ARB_fragment_coord_conventions, but the default origin in
upper left instead of lower left as in OpenGL.

The syntax is:
PROPERTY FS_COORD_ORIGIN [UPPER_LEFT|LOWER_LEFT]
PROPERTY FS_COORD_PIXEL_CENTER [HALF_INTEGER|INTEGER]

The names have been chosen for consistency with the GS properties
and the OpenGL extension spec.

The defaults are of course the previously assumed conventions:
UPPER_LEFT and HALF_INTEGER.
2010-01-29 14:13:14 +01:00
Corbin Simpson
2e481e9fad gallium-docs: Minor grammar, need to talk about dual-source blends. 2010-01-28 13:37:09 -08:00
Corbin Simpson
505a43aff2 gallium-docs: Clean up constantbuf info a bit.
Hmm, does this belong in context, next to set_constant_buffer? Maybe
a paragraph in shaders might be useful.
2010-01-28 12:35:12 -08:00
Corbin Simpson
a5f7c63fc0 gallium-docs: Add PIPE_CAP info. 2010-01-28 12:22:51 -08:00
Roland Scheidegger
9b346f83a7 Merge commit 'origin/perrtblend'
Conflicts:
	src/gallium/drivers/softpipe/sp_screen.c
	src/gallium/include/pipe/p_defines.h
2010-01-28 17:23:58 +01:00
Michal Krol
6522804cb3 docs: Implement constant buffer CAPs. 2010-01-28 14:08:16 +01:00
Corbin Simpson
f0a3f824ac gallium-docs: Moar buffer info.
Oh look, that one question about map_buffer_range is answered.
2010-01-28 03:05:46 -08:00
Corbin Simpson
2102ee204c gallium-docs: Start doc'ing screen buffers. 2010-01-28 03:05:46 -08:00
Igor Oliveira
db89bf4002 docs: add documentation to double opcodes
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-01-26 17:18:44 -07:00
Corbin Simpson
8cf1af4507 gallium-docs: Add note on scissor. 2010-01-25 01:12:30 -08:00
Roland Scheidegger
629bb3fa32 docs: enhance blend documentation 2010-01-21 20:48:13 +01:00
Roland Scheidegger
c6c9d3b091 docs: clean up sampler description 2010-01-21 20:22:24 +01:00
Brian Paul
6c1549a77d gallium/docs: document conditional rendering 2010-01-21 11:52:36 -07:00
Corbin Simpson
09f69b1e5d docs: Clarify PIPE_TEXTURE_USAGE_DYNAMIC. 2010-01-18 18:06:55 -08:00
Corbin Simpson
f90733c116 docs: Use proper XOR symbol. 2010-01-18 18:06:55 -08:00
Corbin Simpson
047719182f docs: Spacing in TGSI formulae.
Some of those still look atrocious. :T
2010-01-18 17:31:56 -08:00
Corbin Simpson
28fd246634 docs: Grammar and refs in Rasterizer. 2010-01-18 17:17:09 -08:00
Corbin Simpson
2598f00078 docs: Cleanup Rasterizer a bit.
I'm getting better at this, I think.
2010-01-18 17:12:13 -08:00
Corbin Simpson
2b4ad02321 docs: Fix terms and refs.
I fail at Sphinx-style ReST.
2010-01-18 16:40:39 -08:00
Corbin Simpson
4f52dfeda2 docs: Slowly keep fleshing out more info. 2010-01-18 15:30:28 -08:00
Corbin Simpson
9811ebf61f docs: PIPE_TEXTURE_USAGE info.
From IRC with Jakob.
2010-01-18 15:30:28 -08:00
Roland Scheidegger
bf575b6c27 gallium: document set_constant_buffer 2010-01-15 18:25:14 +01:00
Roland Scheidegger
1c4ad77812 gallium: remove set_edgeflags from docs 2010-01-15 17:55:42 +01:00
Michal Krol
ffd2848056 gallium: Document drawing commands. 2010-01-14 18:55:52 +01:00
Corbin Simpson
6a2936b876 gallium/docs: Random things sitting around in my stash. 2010-01-13 20:46:53 -08:00
Roland Scheidegger
a407636efb gallium: remove point_size_min and point_size_max from rasterizer state
The state tracker is responsible for clamping to any graphics API enforced
size min/max limits for both the static point_size setting as well as per
vertex point size (in the vertex shader).
Note that mesa state tracker didn't actually use these values.
2010-01-12 15:54:13 +01:00
Brian Paul
439b34c9dd gallium/docs: finish up description of pipe_rasterizer_state fields 2010-01-06 09:42:53 -07:00
Corbin Simpson
acb8073d07 docs: Stub out list of modules in core distribution of G3D. 2010-01-05 08:22:18 -08:00
Michal Krol
86b336f71b docs: Explain TGSI_SEMANTIC_NORMAL. 2010-01-04 13:38:58 +01:00
Michal Krol
8ab89d7681 docs: Fix indent. 2010-01-04 13:23:41 +01:00
Michal Krol
07f416cdc9 docs: Clarify what truncate means. 2010-01-04 13:21:32 +01:00
Michal Krol
cef218062a docs: Replace bogus \times' back with *'. 2010-01-04 13:15:28 +01:00
Michal Krol
c929664fdf docs: TGSI SIN and COS are scalar instructions. 2010-01-04 13:12:27 +01:00