Ben Skeggs
026e2fd3c6
nv40: remove pipe_state struct now.
2008-02-25 13:33:08 +11:00
Ben Skeggs
4058a90127
nv40: construct vbo state the same way as the rest
2008-02-25 13:30:24 +11:00
Ben Skeggs
14de997d5d
nv40: dump meaningful names for surface formats
2008-02-25 12:26:48 +11:00
José Fonseca
2bebeef81b
Update some msvc compiler flags.
2008-02-24 17:58:18 +09:00
José Fonseca
fdcb9260ee
Add new files.
2008-02-24 17:58:05 +09:00
José Fonseca
e70a431c3d
A few more tweaks to get correct WINDDK compilation.
2008-02-24 16:43:07 +09:00
José Fonseca
7aadb475e5
gallium: Fix MSVC warnings.
2008-02-24 10:37:31 +09:00
Brian
012391357f
gallium: disable early Z test if fragment shader contains KIL instruction.
...
Use tgsi_scan_shader() to determine if the fragment shader uses KIL or
writes fragment.z
2008-02-23 16:17:17 -07:00
Brian
35ca45daba
gallium: added TGSI_FILE_COUNT
2008-02-23 16:15:54 -07:00
Brian
1d77d6caf6
gallium: added new tgsi_scan.c / tgsi_scan_shader() function
...
Used to get information about registers, instructions used in a shader.
2008-02-23 16:15:29 -07:00
José Fonseca
e9bb63c8e2
gallium: MSVC fixes.
2008-02-24 02:23:12 +09:00
José Fonseca
58a3d7dfd9
Revamp scons usage.
2008-02-23 19:49:08 +09:00
Dave Airlie
d7cf6a8a69
r300: fixup some more names
2008-02-23 19:17:00 +10:00
Dave Airlie
df6e9e40a9
r300: some initial register info from doc drop
2008-02-23 18:54:07 +10:00
José Fonseca
e8de5c70e3
Bring in several forgotten MSVC fixes.
2008-02-23 14:14:54 +09:00
José Fonseca
bed547cb82
Fix typo.
2008-02-23 14:14:20 +09:00
Kristian Høgsberg
dd1d66fc4a
intel: Merge intel_context.c from i915 and i965.
2008-02-22 21:44:00 -05:00
Brian
aec315f05f
gallium: fix a state validation bug found w/ pointblast.c
2008-02-22 18:34:31 -07:00
Brian
e9276efafe
gallium: fix bug in which wide point stage overrode the aapoint stage
...
Also, simplify the logic a bit.
2008-02-22 17:22:54 -07:00
Brian
c74900ee5d
gallium/i915: overhaul of fragment shader compilation, constant/immediate allocation
...
Before, fragment shaders were translated to i915 hw code at bind time, rather
than create time. Now there's an i915_fragment_shader struct with the expected
contents that's created by i915_create_fs_state(). Translation to i915 code
takes place there too.
Immediates are handled correctly now. During program translation we keep
track of which constant buffer slots are free (i.e. not referenced by the
shader). Then the TGSI immediates and ancillary immediates (introduced for
SIN/COS/etc) are put into those free slots.
When it's time to upload the constant buffer, use the fp->constant_flags[]
array to determine if we should grab an immediate from the shader, or a
user-defined parameter from the gallium constant buffer.
2008-02-22 16:48:05 -07:00
Patrice Mandin
d8a9d850b9
nv30: init zeta to NULL, use color pitch if no zeta
2008-02-22 22:21:15 +01:00
Brian
8cd7c1d03c
i915: include stdio.h
2008-02-22 14:07:33 -07:00
Brian
24f3d7de29
i915: include p_debug.h (resolves undefined assert())
2008-02-22 14:07:12 -07:00
Patrice Mandin
0a5ed0667e
nv30: wrong number of parameters
2008-02-22 17:18:27 +01:00
Brian
12c14c31b7
gallium: fix brokenb build
2008-02-22 08:56:55 -07:00
Brian
0bb53709e8
cell: added function prototypes to silence warnings
2008-02-22 08:52:57 -07:00
Brian
b4d050ffcc
cell: fix build: s/dest/vertex/
2008-02-22 08:52:57 -07:00
José Fonseca
f1bef2cba2
gallium: Countour MSVC's pickyness for structures returned by value.
2008-02-23 00:51:48 +09:00
José Fonseca
901b03e84d
gallium: Wrap decls in extern "C".
2008-02-23 00:51:37 +09:00
José Fonseca
6c597238b2
gallium: Add cso convenience routine (from Keith's patch).
2008-02-23 00:51:33 +09:00
José Fonseca
2cf860b866
gallium: MSVC fixes.
2008-02-23 00:51:29 +09:00
Michal Krol
e0de82fbcb
gallium: Fix build on Windows.
2008-02-23 00:51:19 +09:00
Michal Krol
57060bc1fa
gallium: Silence compiler warnings on Windows.
2008-02-23 00:51:15 +09:00
Michal Krol
69a7c9739b
gallium: Silence compiler warnings on Windows.
2008-02-23 00:51:12 +09:00
Michal Krol
6f238275c7
gallium: Define intptr_t for Windows platform.
2008-02-23 00:51:06 +09:00
Michal Krol
8828dd1443
gallium: Move align_pointer() to p_pointer.h.
2008-02-23 00:50:59 +09:00
Michal Krol
f44b30f1eb
gallium: New file.
2008-02-23 00:50:55 +09:00
José Fonseca
26c57d1630
Avoid building problematic module/drivers on windows.
2008-02-23 00:47:28 +09:00
José Fonseca
16245d9b38
Don't parse mesa's rtasm asm module.
2008-02-23 00:47:27 +09:00
Kristian Høgsberg
c99fa92ff8
Merge {i915,i965}/intel_context.h as intel/intel_context.h
2008-02-22 00:51:52 -05:00
Ben Skeggs
7b938431d0
nv40: stateobj start out with 0 refcount
2008-02-22 14:46:48 +11:00
Ben Skeggs
c2e36bdd1a
nv40: move hw_dirty
2008-02-22 13:55:18 +11:00
Ben Skeggs
5b2ff28a2f
nv40: rework fragment texture state
2008-02-22 13:32:51 +11:00
Ben Skeggs
73e0e567de
nouveau: fix build
2008-02-22 12:36:48 +11:00
Ben Skeggs
f7922db610
Merge branch 'upstream-gallium-0.1' into nouveau-gallium-0.1
...
Conflicts:
src/gallium/drivers/Makefile
2008-02-22 12:25:15 +11:00
Alan Hourihane
1c718c0d78
Use drm_i915_sarea instead of drmI830Sarea and remove i830_common.h
2008-02-22 00:20:27 +00:00
Brian
446bfc32a8
gallium: new draw stage for polygon stipple.
...
For hardware without native polygon stipple. Create a 32x32 alpha texture
that encodes the stipple pattern. Modify the user's fragment program to
sample the texture (with gl_FragCoord) and kill the fragment according to
the texel value.
Temporarily enabled in softpipe driver, replacing the sp_quad_stipple.c step.
2008-02-21 16:56:32 -07:00
Brian
eb4dc2dd5e
gallium: new AA point drawing stage
...
AA points are drawn by converting the point to a quad, then modifying the
user's fragment shader to compute a coverage value. The final fragment
color's alpha is modulated by the coverage value. Fragments outside the
point's radius are killed.
2008-02-21 16:18:05 -07:00
Brian
a93d8bfaf2
gallium: fill in some blend/rasterizer template fields to make sure they're all valid, even if not relevant
2008-02-21 12:33:30 -07:00
Brian
d4d2e36a42
gallium: comments, white-space clean-up
2008-02-21 12:33:30 -07:00