Dave Airlie [Wed, 4 Feb 2009 13:40:41 +0000 (23:40 +1000)]
r200: fixup DMA region stuff
Dave Airlie [Wed, 4 Feb 2009 03:16:41 +0000 (13:16 +1000)]
radeon: call getpagesize once and store in a static
Dave Airlie [Wed, 4 Feb 2009 03:16:03 +0000 (13:16 +1000)]
r300: make dma buffer reuse much more sensible
Dave Airlie [Wed, 4 Feb 2009 01:19:26 +0000 (11:19 +1000)]
radeon: add support for stencil buffers + misc debug changes
this adds the stencil rb setup, along with misc changes to formatting
and debug
Dave Airlie [Wed, 4 Feb 2009 01:17:37 +0000 (11:17 +1000)]
r200: move to new mipmap interface
Dave Airlie [Wed, 4 Feb 2009 01:14:38 +0000 (11:14 +1000)]
radeon: only do the fb read if we are mapping a VRAM object
this makes writing the DMA buffers got a lot better
Dave Airlie [Wed, 4 Feb 2009 01:13:54 +0000 (11:13 +1000)]
radeon_cs: move to inline cs_write_dword
this gets back some of the CPU this was wasting
Dave Airlie [Tue, 3 Feb 2009 02:38:31 +0000 (12:38 +1000)]
radeon: add a reference to the static buffers so they don't get deleted
Dave Airlie [Mon, 2 Feb 2009 23:49:45 +0000 (09:49 +1000)]
r300: fixup mipmap + texsubimage issues
This fixes a few regression in piglit, and adds some debug to the mipmap code
Dave Airlie [Mon, 2 Feb 2009 23:48:27 +0000 (09:48 +1000)]
radeon_bo: align size of bo to page size.
This is really required for the VRAM allocator upload function.
Dave Airlie [Mon, 2 Feb 2009 02:26:22 +0000 (12:26 +1000)]
radeon: this code forgot to add dPriv x/y back to spans
Dave Airlie [Mon, 2 Feb 2009 02:26:04 +0000 (12:26 +1000)]
r300: rename validate textures to validate buffers
Dave Airlie [Fri, 30 Jan 2009 16:00:12 +0000 (02:00 +1000)]
r200/r300: swtcl fixups to use old dma buffers on top of BOs
Dave Airlie [Fri, 30 Jan 2009 15:59:57 +0000 (01:59 +1000)]
r200/r300: add aperture space checks
Dave Airlie [Thu, 29 Jan 2009 13:19:11 +0000 (23:19 +1000)]
r200: fix swtcl - slow but works
Dave Airlie [Thu, 29 Jan 2009 10:46:31 +0000 (20:46 +1000)]
WIP comit
Dave Airlie [Thu, 29 Jan 2009 10:33:07 +0000 (20:33 +1000)]
r200: bring back single dma flush
Dave Airlie [Thu, 29 Jan 2009 09:11:31 +0000 (19:11 +1000)]
radeon: remove even more common code
Dave Airlie [Thu, 29 Jan 2009 06:47:37 +0000 (16:47 +1000)]
radeon/r200/r300: bring back old style DMA buffer on top of BOs.
this gets back a lot of the lots speed in gears on r500 at least
I also fixed the legacy bufmgr to deal when the dma space fills up
Dave Airlie [Thu, 29 Jan 2009 13:03:47 +0000 (23:03 +1000)]
r200: start work on userspace clear for r200
Dave Airlie [Thu, 29 Jan 2009 13:03:34 +0000 (23:03 +1000)]
r200: unref swtcl buffer correctly
Dave Airlie [Thu, 29 Jan 2009 13:03:21 +0000 (23:03 +1000)]
r300: fix some whitespace
Dave Airlie [Thu, 29 Jan 2009 13:02:43 +0000 (23:02 +1000)]
r200: re-write state handlers for new CS mechanism
Dave Airlie [Thu, 29 Jan 2009 13:01:41 +0000 (23:01 +1000)]
r200: avoid setting variable on kernel mm setup
Dave Airlie [Thu, 29 Jan 2009 13:01:21 +0000 (23:01 +1000)]
radeon: add repeated register packet one
Dave Airlie [Thu, 22 Jan 2009 12:49:16 +0000 (22:49 +1000)]
r200: fix up swtcl/tcl flushes
Dave Airlie [Thu, 22 Jan 2009 22:08:34 +0000 (08:08 +1000)]
radeon: plug memory leak running gears
Dave Airlie [Thu, 22 Jan 2009 21:34:45 +0000 (07:34 +1000)]
radeon: remove some debugging
Dave Airlie [Thu, 22 Jan 2009 11:49:58 +0000 (21:49 +1000)]
radeon: better free of array
Dave Airlie [Thu, 22 Jan 2009 11:47:38 +0000 (21:47 +1000)]
radeon: free all relocs in array
Dave Airlie [Thu, 22 Jan 2009 11:38:35 +0000 (21:38 +1000)]
radeon: check relocs before deref
Dave Airlie [Thu, 22 Jan 2009 11:35:58 +0000 (21:35 +1000)]
radeon: fix relocs even more
Dave Airlie [Thu, 22 Jan 2009 11:31:06 +0000 (21:31 +1000)]
radeon: fix reloc free harder
Dave Airlie [Thu, 22 Jan 2009 11:29:22 +0000 (21:29 +1000)]
radeon: free indices caught with valgrind
Dave Airlie [Thu, 22 Jan 2009 11:19:56 +0000 (21:19 +1000)]
radeon: cleanup bo unref codepath in pending code
assert for bad case hopefully
Dave Airlie [Thu, 22 Jan 2009 11:12:54 +0000 (21:12 +1000)]
radeon: fix counting for cfree handles in an inline
Dave Airlie [Thu, 22 Jan 2009 16:47:15 +0000 (02:47 +1000)]
radeon: add r100/r200 workarounds for legacy aging
Dave Airlie [Thu, 22 Jan 2009 14:23:10 +0000 (00:23 +1000)]
r200: disable some debug
Dave Airlie [Thu, 22 Jan 2009 14:17:38 +0000 (00:17 +1000)]
r200: emit elts into a separate ELT bo
Dave Airlie [Wed, 21 Jan 2009 16:53:30 +0000 (02:53 +1000)]
r200r300: start merging span code
Dave Airlie [Wed, 21 Jan 2009 16:38:00 +0000 (02:38 +1000)]
r200: remove indexed verts
Dave Airlie [Wed, 21 Jan 2009 15:24:50 +0000 (01:24 +1000)]
radeon: fix 1D textures
Dave Airlie [Wed, 21 Jan 2009 15:17:31 +0000 (01:17 +1000)]
r200: fix cubemaps
Dave Airlie [Wed, 21 Jan 2009 15:05:43 +0000 (01:05 +1000)]
r200/r300: port r200 texture handling to common code
we now get texrect + trivial textures working
Dave Airlie [Wed, 21 Jan 2009 08:41:11 +0000 (18:41 +1000)]
r300/radeon: move face_for_target
Dave Airlie [Tue, 20 Jan 2009 16:21:45 +0000 (02:21 +1000)]
r300: start migrating common functions into common code
Dave Airlie [Tue, 20 Jan 2009 16:15:28 +0000 (02:15 +1000)]
r300: move to common texture_image object
Dave Airlie [Tue, 20 Jan 2009 16:10:32 +0000 (02:10 +1000)]
radeon/r200/r300: start to move to common miptree/texobj
Dave Airlie [Tue, 20 Jan 2009 15:40:33 +0000 (01:40 +1000)]
r200: make tri render on my r200.
Dave Airlie [Tue, 20 Jan 2009 12:59:34 +0000 (22:59 +1000)]
r200: tri runs without crashing - doesn't draw anything
Dave Airlie [Tue, 20 Jan 2009 12:51:04 +0000 (22:51 +1000)]
r200: clear is working at least - not much else
Dave Airlie [Thu, 15 Jan 2009 06:50:58 +0000 (16:50 +1000)]
r300: move some more function to generic
Dave Airlie [Thu, 15 Jan 2009 06:41:01 +0000 (16:41 +1000)]
radeon/r200/r300: start to make cmd buf useful
Dave Airlie [Thu, 15 Jan 2009 06:25:37 +0000 (16:25 +1000)]
r100/r200: move to new atom style emission
Dave Airlie [Wed, 14 Jan 2009 05:54:28 +0000 (15:54 +1000)]
radeon: get ctx right in copybuffer
Dave Airlie [Wed, 14 Jan 2009 05:48:02 +0000 (15:48 +1000)]
r200: add missing symbols
Dave Airlie [Wed, 14 Jan 2009 05:45:29 +0000 (15:45 +1000)]
radeon/r200/r300: make legacy emit non-r300 specific
Dave Airlie [Wed, 14 Jan 2009 05:21:45 +0000 (15:21 +1000)]
radeon: move debug symbol add DRI2
Dave Airlie [Wed, 14 Jan 2009 05:12:57 +0000 (15:12 +1000)]
r300: start moving new r300 cmdbuf into common code
Dave Airlie [Wed, 14 Jan 2009 03:38:12 +0000 (13:38 +1000)]
radeon/r200/r300: consolidate swap buffers
Dave Airlie [Wed, 14 Jan 2009 03:38:03 +0000 (13:38 +1000)]
radeon: remove old lock code
Dave Airlie [Wed, 14 Jan 2009 03:23:24 +0000 (13:23 +1000)]
radeon/r200/r300: consolidate the buffer copy/flip code into one place
Dave Airlie [Wed, 14 Jan 2009 02:04:00 +0000 (12:04 +1000)]
radeon/r200/r300: attempt to move lock to common code
Dave Airlie [Wed, 14 Jan 2009 00:44:48 +0000 (10:44 +1000)]
radeon/r200/r300: initial attempt to convert to common context code
Dave Airlie [Tue, 13 Jan 2009 22:40:15 +0000 (08:40 +1000)]
radeon/r200: move more stuff closer together in context
Dave Airlie [Tue, 13 Jan 2009 20:28:43 +0000 (06:28 +1000)]
radeon/r200: move state atom to common header
Dave Airlie [Tue, 13 Jan 2009 12:55:27 +0000 (22:55 +1000)]
radeon/r200: start splitting out commonalities into separate headers
Dave Airlie [Tue, 13 Jan 2009 06:50:15 +0000 (16:50 +1000)]
radeon: use bo_wait to wait for all buffers to be rendered to
Not 100% sure this is correct, but its what Intel does and its better than
CP_IDLE.
Kristian Høgsberg [Tue, 2 Dec 2008 02:44:03 +0000 (21:44 -0500)]
Bump dri2proto requirement to 1.99.3, drop CopyRegion bitmask from protocol.
(cherry picked from commit
154a9e5317f890618932cea0129ef887e16baf84)
Dave Airlie [Sat, 10 Jan 2009 23:47:38 +0000 (09:47 +1000)]
radeon/r300: add code to setup r300 vs r500 using pci device from kernel
Dave Airlie [Mon, 22 Dec 2008 07:04:39 +0000 (17:04 +1000)]
r300: disable settexoffset extension on r300
Dave Airlie [Mon, 22 Dec 2008 02:28:16 +0000 (12:28 +1000)]
radeon: fix library name for consistency
Dave Airlie [Mon, 22 Dec 2008 01:41:32 +0000 (11:41 +1000)]
radeon: remove start/end offset + cleanup some whitespace
Dave Airlie [Mon, 22 Dec 2008 01:41:23 +0000 (11:41 +1000)]
radeon: fixup r500 FP emission for new CS
Dave Airlie [Sat, 20 Dec 2008 23:54:35 +0000 (09:54 +1000)]
radeno: hopefully make r200/radeon build
Dave Airlie [Mon, 1 Dec 2008 06:24:50 +0000 (16:24 +1000)]
radeon: make DRI1 one work with new CS mechanism
Jerome Glisse [Sun, 16 Nov 2008 16:59:46 +0000 (17:59 +0100)]
radeon: cs add print cs callback
Jerome Glisse [Sun, 16 Nov 2008 16:58:43 +0000 (17:58 +0100)]
radeon: fix pointer dangling
Jerome Glisse [Sat, 15 Nov 2008 09:40:32 +0000 (10:40 +0100)]
radeon: update to libdrm-radeon API changes
Jerome Glisse [Fri, 14 Nov 2008 10:25:28 +0000 (11:25 +0100)]
radeon: dri2 don't forget to free buffer
Jerome Glisse [Thu, 13 Nov 2008 19:04:50 +0000 (20:04 +0100)]
r300: release bo from pixmap
Jerome Glisse [Wed, 12 Nov 2008 16:00:28 +0000 (17:00 +0100)]
r300: convert to new relocations format (see libdrm-radeon)
Jerome Glisse [Wed, 12 Nov 2008 13:02:57 +0000 (14:02 +0100)]
r300: SetTex extension support
Jerome Glisse [Sun, 9 Nov 2008 18:00:28 +0000 (19:00 +0100)]
r300: cs + DRI2 support
If DRI2 is enabled then switch cmd assembly to directly build
hw packet.
Jerome Glisse [Wed, 5 Nov 2008 13:31:46 +0000 (14:31 +0100)]
r300: bo and cs abstraction.
This abstract memory management and command stream building so we
can use different backend either legacy one which use old pathway
or a new one like with a new memory manager. This works was done by :
Nicolai Haehnle
Dave Airlie
Jerome Glisse
Brian Paul [Fri, 14 Nov 2008 01:18:07 +0000 (18:18 -0700)]
mesa: no longer need Writemask field in GLSL IR nodes
The Swizzle and Size fields carry all the info we need now.
Brian Paul [Fri, 14 Nov 2008 00:02:11 +0000 (17:02 -0700)]
mesa: revamp GLSL instruction emit code
This is a step toward better array handling code. In particular, when more
than one operand of an instruction uses indirect addressing, we'll need some
temporary instructions and registers. By converting IR storage to instruction
operands all in one place (emit_instruction()) we can be smarter about this.
Also, somewhat better handling of dst register swizzle/writemask handling.
This results in tighter writemasks on some instructions which is good for
SOA execution.
And, cleaner instruction commenting with inst_comment().
Next: remove some more dead code and additional clean-ups...
Brian Paul [Thu, 13 Nov 2008 23:37:52 +0000 (16:37 -0700)]
mesa: make writemask_string() non-static
Brian Paul [Thu, 13 Nov 2008 23:31:27 +0000 (16:31 -0700)]
mesa: remove some do-nothing GLSL code
Brian Paul [Thu, 13 Nov 2008 15:47:36 +0000 (08:47 -0700)]
mesa: fix accidental regression in GLSL built-in texture matrix lookup
Was broken by commit
9aca9a4b72b2a7b378e50bd88f9c3324d07375ec.
Brian Paul [Thu, 13 Nov 2008 15:46:45 +0000 (08:46 -0700)]
mesa: use the tighter definition of GLSL ftransform() from the gallium branches
Brian Paul [Wed, 12 Nov 2008 23:47:03 +0000 (16:47 -0700)]
mesa: remove unused/obsolete __NormalMatrixTranspose matrix
Brian Paul [Wed, 12 Nov 2008 23:44:47 +0000 (16:44 -0700)]
mesa: fix bug in GLSL built-in matrix state lookup
Brian Paul [Wed, 12 Nov 2008 18:12:10 +0000 (11:12 -0700)]
mesa: tweak program register printing for RelAddr case
Alan Hourihane [Thu, 13 Nov 2008 13:16:03 +0000 (13:16 +0000)]
mesa: fix generation of fixed function state when no vp exists
Eric Anholt [Wed, 12 Nov 2008 21:37:16 +0000 (13:37 -0800)]
i965: Upload state on primitive switch, don't just prepare it.
This was a regression in
59b2c2adbbece27ccf54e58b598ea29cb3a5aa85 that broke
blender, among other apps.
Eric Anholt [Wed, 12 Nov 2008 21:34:20 +0000 (13:34 -0800)]
i965: Fix VB refcount leak on aperture overflow.
Eric Anholt [Tue, 4 Nov 2008 20:34:29 +0000 (12:34 -0800)]
Add glsync demo program from jbarnes for testing vblank synchronization.
Eric Anholt [Mon, 3 Nov 2008 02:50:59 +0000 (18:50 -0800)]
i965: Fix up VS max_threads for G4X and removing a magic number.
As far as I can read in the docs, VS threads can be 1:1 with the pairs of
VUE handles allocated for them. Also, G4X can run twice as many threads as
before (though we won't unless the we bump the preferred URB entries for VS).
Eric Anholt [Mon, 3 Nov 2008 02:49:33 +0000 (18:49 -0800)]
i965: Fix up SF max_threads.
We were dividing the number of URB entries by two to get number of threads,
which looks suspiciously like a copy'n'paste-o from brw_vs_state.c. Also, the
maximum number of threads is 24, not 12.