Commit graph

2182 commits

Author SHA1 Message Date
Michel Dänzer
c250b2e96d i915: Use maptype _DRM_TTM for PRIV1.
Makes sure the userspace mappings are uncached.
2007-05-02 12:02:40 +02:00
Michel Dänzer
3786b8c921 i915: Initialize PRIV1 regardless of HWZ.
Might be useful for indirect state on older hardware.
2007-05-01 19:51:17 +02:00
Michel Dänzer
0eb514b084 Merge remote branch 'upstream/master' into i915-zone-rendering 2007-05-01 17:26:31 +02:00
Michel Dänzer
f06ad82ecd Fix userspace ABI breakage from 3c384a9ad5. 2007-05-01 17:03:55 +02:00
Michel Dänzer
570d404686 i915: Fix build warnings. 2007-05-01 13:29:11 +02:00
Michel Dänzer
476c5daed0 Merge remote branch 'upstream/master' into i915-zone-rendering
Conflicts:

	shared-core/i915_irq.c
2007-05-01 13:27:54 +02:00
Michel Dänzer
579f9c09eb i915: Add PRIV1 memory type.
This is backed by physically contiguous memory and can be referenced by
userspace by its physical address.
2007-05-01 13:24:22 +02:00
Michel Dänzer
ca1cd3257c radeon: Don't mess up page flipping when a file descriptor is closed.
There can still be other contexts that may use page flipping later on, so don't
just unilaterally 'clean it up', which could lead to the wrong page being
displayed, e.g. when running 3D apps with a GLX compositing manager such as
compiz using page flipping.
2007-04-29 12:37:51 +02:00
Dave Airlie
feb6803778 move i915 to new drm_wait_on function 2007-04-28 15:07:43 +10:00
Dave Airlie
6e860d08d0 drm: add new drm_wait_on function to replace macro 2007-04-28 15:07:43 +10:00
Dave Airlie
e9b3acd257 remove register usage 2007-04-28 15:07:43 +10:00
Dave Airlie
9f9c19065c remove DRM_GETSAREA and replace with drm_getsarea function 2007-04-28 15:07:43 +10:00
Michel Dänzer
021ccee6c3 i915: More HWZ fixes and extended debugging output.
Also initialize invariant state at the beginning of the rendering stream, and
start an alternative code path for using GTT relative BPL addresses (currently
always hangs the HWB during the first frame).
2007-04-26 13:52:15 +02:00
Michel Dänzer
772c981460 i915: Use I915_READ/WRITE for interrupt registers with more than 16 valid bits. 2007-04-26 13:47:46 +02:00
George Sapountzis
e88934274a Revert "bug 7092 : add pci ids for mach64 in Dell poweredge 4200"
This reverts commit 255f3e6f76.

Rage IIc does not have a vertex setup engine.
2007-04-26 14:16:51 +03:00
George Sapountzis
3a2c9f4621 linux: minor indent. 2007-04-26 14:16:28 +03:00
George Sapountzis
942d9be296 freebsd: remove stray apperance of IN_MODULE.
The xserver no longer uses the libc-wrapper.
2007-04-26 14:16:13 +03:00
George Sapountzis
b69b426346 libdrm: remove HAVE_XORG_CONFIG_H and XFree86LOADER ifdef's.
We no longer import libdrm in the xserver.
2007-04-26 14:15:55 +03:00
Dave Airlie
2a6f555053 update create_lk_drm.sh script 2007-04-26 17:54:06 +10:00
Dave Airlie
afc029e935 whitespace cleanup 2007-04-26 16:25:43 +10:00
Dave Airlie
e5c1f1caa2 remove some whitespace violation 2007-04-26 16:22:28 +10:00
Dave Airlie
4b72759b30 drm: nopfn warning on 64-bit 2007-04-26 16:22:11 +10:00
Jesse Barnes
71d44cda52 drm/ttm: allow drm_buffer_object_create to be used in-kernel 2007-04-26 16:09:24 +10:00
Jesse Barnes
3c384a9ad5 Add new buffer object type for kernel allocations that don't initially have a user mapping.
(cherry picked from commit 2e21779992)
2007-04-26 16:04:09 +10:00
Brian
5c8561aae2 More detailed instructions, tips. 2007-04-25 14:52:29 -06:00
Michel Dänzer
a09bf2337d i915: HWZ reorganization.
* Feed the HWB synchronously, and print out any batchbuffer commands it
  generates.
* Put the rendering commands into the normal ring buffer.
* Emit static state in the rendering stream, the HWB doesn't support it.

Various other minor changes.
2007-04-24 19:10:48 +02:00
Stephane Marchesin
61477d60c4 nouveau: fix wacky pci id 2007-04-23 22:37:36 +02:00
Michel Dänzer
f7554ec36c i915: Some minor HWZ cleanup and additional debugging output.
Mostly to clarify where the HWB is hanging.
2007-04-23 10:07:57 +02:00
Kristian Høgsberg
af3ffcd822 Initialize rwlock using rwlock_init to appease lockdep validator. 2007-04-20 18:06:31 -04:00
Thomas Hellstrom
a8a8108e45 Avoid a fence timeout problem when a signal is pending. 2007-04-20 15:57:41 +02:00
Thomas Hellstrom
1ce9c09231 Fix via compile error
(Reported by Benno Schulenberg.)
2007-04-20 15:49:31 +02:00
Michel Dänzer
b65ddb2f88 i915: Various HWZ fixes.
Still doesn't work quite correctly, but at least it no longer locks up or hangs
with simple apps.
2007-04-19 20:27:51 +02:00
Michel Dänzer
ad172d79d1 i915: Don't always read/write LP_RING register in generalized ring functions. 2007-04-18 19:35:58 +02:00
Thomas Hellstrom
2df2c70e20 Simplify the ttm backend interface and the agp ttm backend. 2007-04-18 16:33:28 +02:00
Thomas Hellstrom
5a96d59ce9 Don't always free up memory space when we unpin buffers. 2007-04-17 14:15:37 +02:00
Thomas Hellstrom
5432cc4abf Fix buffer object reference problems.
(Reported by Dave Airlie).
2007-04-17 10:53:19 +02:00
Thomas Hellstrom
e805ca959d via: Make sure we flush write-combining using a follow-up read. 2007-04-17 08:58:23 +02:00
Thomas Hellstrom
e91ceff6c9 Add a code comment. 2007-04-17 08:46:45 +02:00
Thomas Hellstrom
e6e4946c82 Require the hardware lock for buffer creation
(since that implies a validate).
Fix drm_bo_wait_unfenced error messages and codes.
Fix some return codes from libdrm.
2007-04-16 16:23:05 +02:00
Michel Dänzer
5f3c5781df i915: Miscellaneous HWZ fixes.
Also extend debugging output.
2007-04-13 18:43:47 +02:00
Michel Dänzer
333dad97bb i915: Emit BIN_CONTROL state. 2007-04-11 19:22:53 +02:00
Michel Dänzer
3da7d2c13b i915: Various calculation fixes. 2007-04-11 19:09:08 +02:00
Matthieu Castet
9b7211dd67 nouveau: nv10 per channel init from ddx 2007-04-10 23:20:13 +02:00
Michel Dänzer
974fe15f85 i915: Synchronize HWB and HWZ ring buffers before writing to them. 2007-04-10 15:20:55 +02:00
Michel Dänzer
e43a68db2b i915: BPL must be 16KB aligned. 2007-04-10 15:10:49 +02:00
Michel Dänzer
f9c3905e75 i915: Flesh out HWZ render sub-ioctl. 2007-04-10 15:10:39 +02:00
Oliver McFadden
059b5d9077 rs480: Renamed some unknown registers. See dri-devel list. 2007-04-09 23:23:40 +00:00
Michel Dänzer
d0332ff450 i915: Initialize bin preambles before rendering when necessary. 2007-04-09 18:51:43 +02:00
Michel Dänzer
744503f7d6 i915: BPL initialization fixes. 2007-04-09 17:25:30 +02:00
Michel Dänzer
e4e4b92dc0 i915: Re-initialize BPL before each render. 2007-04-09 16:09:26 +02:00