Commit graph

26564 commits

Author SHA1 Message Date
Dave Airlie
b584b0728d radeon: make compile again.
Not tested but ripped out lots of stuff unneeded anymore time to test later
2009-02-04 15:58:08 +10:00
Dave Airlie
88a409fa8e r300: fix up CS for modesetting - gears under kms works 2009-02-04 15:12:16 +10:00
Eric Anholt
8910da5b7a intel: Fix commented-out glViewport in intel_meta_set_passthrough_transform.
Too much commit -a while debugging.
2009-02-03 20:06:48 -08:00
Eric Anholt
529d1d720e swrast: Add support for x8r8g8b8 fbconfig.
This lets swrast produce an fbconfig suitable for the root visual now that
the server's not allowing mismatched fbconfigs.
2009-02-03 20:06:48 -08:00
Dave Airlie
c370776b02 radeon: make generate_mipmap static 2009-02-04 13:41:05 +10:00
Dave Airlie
0bcac04100 r300: fix swtcl 2009-02-04 13:40:48 +10:00
Dave Airlie
c1a42f5cdc r200: fixup DMA region stuff 2009-02-04 23:40:41 +10:00
Dave Airlie
e44effcfcb radeon: call getpagesize once and store in a static 2009-02-04 13:16:41 +10:00
Dave Airlie
711cbf30a1 r300: make dma buffer reuse much more sensible 2009-02-04 13:16:03 +10:00
Dave Airlie
55c8a79a33 radeon: add support for stencil buffers + misc debug changes
this adds the stencil rb setup, along with misc changes to formatting
and debug
2009-02-04 11:19:26 +10:00
Dave Airlie
3f59bee438 r200: move to new mipmap interface 2009-02-04 11:17:37 +10:00
Dave Airlie
c85a3851b6 radeon: only do the fb read if we are mapping a VRAM object
this makes writing the DMA buffers got a lot better
2009-02-04 11:14:38 +10:00
Dave Airlie
e8f575d657 radeon_cs: move to inline cs_write_dword
this gets back some of the CPU this was wasting
2009-02-04 11:13:54 +10:00
Brian Paul
2f51be75c5 docs: document new MESA_GLX_FORCE_DIRECT env var for the Xlib driver 2009-02-03 15:36:38 -07:00
Brian Paul
49e80bf6b1 xlib: use MESA_GLX_FORCE_DIRECT to make glXIsDirect() always return True
Some apps won't run w/ indirect rendering contexts.
Also, consolidate some context-init code in new init_glx_context() function.
2009-02-03 15:36:38 -07:00
Brian Paul
b5d549e351 mesa: simplify delete_wrapper() 2009-02-03 15:36:38 -07:00
Brian Paul
dd22f6f795 demos: modify bufferobj.c to exercise interleaved vertex arrays
Also, put colors before vertex positions, and place the data at a 40-byte
offset from the start of the buffer.
2009-02-03 15:17:26 -07:00
Alan Hourihane
a47965588f mesa: fix offset problem with interleaved arrays 2009-02-03 20:08:47 +00:00
Zack Rusin
e0c3b4970d gallium: adjust gdi for the latest changes 2009-02-02 23:54:28 -05:00
Zack Rusin
5069bfed29 gallium: remove pipe_buffer from surfaces
this change disassociates, at least from the driver perspective,
the surface from buffer. surfaces are technically now views on the
textures so make it so by hiding the buffer in the internals of
textures.
2009-02-02 23:47:16 -05:00
Corbin Simpson
e5018a5675 r300: Add stubs for swtcl immediate emit. 2009-02-02 20:33:57 -08:00
Dave Airlie
4c078cfbad radeon: add a reference to the static buffers so they don't get deleted 2009-02-03 12:38:31 +10:00
Joakim Sindholt
e1b04da9b3 r300: fix compiler/linker errors 2009-02-02 18:24:55 -08:00
Corbin Simpson
3aabfa4608 r300: Clear up XXX in r300_state. 2009-02-02 16:39:43 -08:00
Corbin Simpson
fa3c59136e r300: Take care of some XXXes. 2009-02-02 16:13:41 -08:00
Brian Paul
8e8b25c26a demos: update multitex.c GLSL demo to use vertex arrays or glVertex-mode
Press 'a' to toggle drawing mode.
2009-02-02 16:51:45 -07:00
Brian Paul
4c5f390328 util: added more functions to extfuncs.h 2009-02-02 16:51:45 -07:00
Brian Paul
dea0d4d563 mesa: fix GLSL issue preventing use of all 16 generic vertex attributes
Only 15 actually worked before since we always reserved generic[0] as an
alias for vertex position.

The case of vertex attribute 0 is tricky.  The spec says that there is no
aliasing between generic vertex attributes 0..MAX_VERTEX_ATTRIBS-1 and the
conventional attributes.  But it also says that calls to glVertexAttrib(0, v)
are equivalent to glVertex(v).  The distinction seems to be in glVertex-mode
versus vertex array mode.

So update the VBO code so that if the shader uses generic[0] but not gl_Vertex,
route the attribute data set with glVertex() to go to shader input generic[0].

No change needed for the glDrawArrays/Elements() path.

This is a potentially risky change so regressions are possible.  All the usual
tests seem OK though.
2009-02-02 16:51:45 -07:00
Brian Paul
1cb7cd1292 glsl: update program->InputsRead when referencing input attributes
This info will be used in the linker for allocating generic vertex attribs.
2009-02-02 16:51:45 -07:00
Brian Paul
e33edafb2c mesa: fix stand-alone glslcompiler 2009-02-02 16:51:45 -07:00
Brian Paul
d2eff33ab7 mesa: make _mesa_fprint_program_opt() non-static 2009-02-02 16:51:45 -07:00
Dave Airlie
d9cf131925 r300: fixup mipmap + texsubimage issues
This fixes a few regression in piglit, and adds some debug to the mipmap code
2009-02-03 09:49:45 +10:00
Dave Airlie
dbf72bdd3d radeon_bo: align size of bo to page size.
This is really required for the VRAM allocator upload function.
2009-02-03 09:48:27 +10:00
Corbin Simpson
33d798c4ea r300: Move some registers around.
This fixes r500 hangs.
2009-02-02 15:39:30 -08:00
Eric Anholt
052c1d66a1 i965: Remove brw->attribs now that we can just always look in the GLcontext. 2009-02-02 15:34:10 -08:00
Eric Anholt
14321fcfde i965: Delete old metaops code now that there are no remaining consumers. 2009-02-02 15:34:09 -08:00
Eric Anholt
c96bac0950 intel: replace custom metaops clear with generic.
No real-world impact on performance seen.  Even glxgears seems to be, if
anything, happier.
2009-02-02 15:33:33 -08:00
Corbin Simpson
a2416e3d7e r300, amd: Oops, a couple more API changes.
Somehow I forgot to commit these.
2009-02-02 14:42:04 -08:00
Eric Anholt
dd1c68f151 dri2: Avoid round-tripping on DRI2GetBuffers for the same set of buffers.
We only wanted to request when asked for the same set of buffers when a resize
has happened.  We can just watch the protocol stream for a ConfigureNotify
and flag to do it then.

This is about a 5% win from doing two glViewport()s per frame in openarena.
2009-02-02 12:00:39 -08:00
José Fonseca
df73c964d8 xlib: Get conditional compilation of drivers working again. 2009-02-02 15:37:58 +00:00
José Fonseca
f0ad6b6144 gdi: Update for wgl st reorg. 2009-02-02 15:36:00 +00:00
Michel Dänzer
859db22527 scons: Fixups for the introduction of the xlib state_tracker.
Not quite working yet; glxinfo complains about glXChooseVisual being undefined.
2009-02-02 15:49:33 +01:00
Brian Paul
92ced46eaf mesa: move code after decls. Fixes Window build failure. 2009-02-02 07:48:10 -07:00
Jakob Bornecrantz
be0a6c3598 gallium: Stop relinking drivers and aux libraries 2009-02-02 14:18:50 +01:00
Keith Whitwell
b608d64243 Merge commit 'origin/gallium-0.2' into gallium-0.2 2009-02-02 12:18:34 +00:00
Keith Whitwell
e4d1757f81 Merge branch 'gallium-wgl-rework' into gallium-0.2
Conflicts:

	src/gallium/state_trackers/wgl/shared/stw_public.h
2009-02-02 12:17:01 +00:00
José Fonseca
558010527b wgl: Only export the same symbols as Microsoft's opengl32.dll.
Plus the ICD entrypoints.
2009-02-02 11:08:41 +00:00
Corbin Simpson
ffc5e9a422 amd: Fix build errors from rebase. 2009-02-02 00:18:25 -08:00
Corbin Simpson
ce6710e369 r300: Clean up after rebase.
Fix a couple struct members, clear up a few texture lines.
2009-02-01 23:58:16 -08:00
Corbin Simpson
38f610e536 r300: Add u_simple_screen support. 2009-02-01 23:43:30 -08:00