[Bug 29951] [r300g] xscreensaver hack "antspotlight" reveals something other than desktop

2011-09-28 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=29951 --- Comment #15 from Tom Stellard 2011-09-28 22:15:41 PDT --- I ran the bad apitrace you sent me, and it looked the same on r300g and llvmpipe. I'm leaning toward this being a bug in xscreensaver, rather than in the driver. You might want to

[Bug 41263] [r600g] glCopyTexImage2D selects a texture format that involves fallback to software

2011-09-28 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=41263 Marek Ol??k changed: What|Removed |Added Product|DRI |Mesa Version|XOrg CVS

[PATCH 9/9] drm/i915: Initialize PCH refclks at modeset init time

2011-09-28 Thread Keith Packard
The reference clock configuration must be done before any mode setting can occur as all outputs must be disabled to change anything. Initialize the clocks after turning everything off during the initialization process. Also, re-initialize the refclk at resume time. Signed-off-by: Keith Packard

[PATCH 25/25] vmwgfx: Bump driver minor to advertise support for new ioctls.

2011-09-28 Thread Thomas Hellstrom
Signed-off-by: Thomas Hellstrom --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h index ee564f0..8cce73e 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h

[PATCH 24/25] vmwgfx: Be more strict with fb depths when using screen objects

2011-09-28 Thread Thomas Hellstrom
From: Jakob Bornecrantz Signed-off-by: Jakob Bornecrantz Reviewed-by: Thomas Hellstrom --- drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 27 +++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c

[PATCH 23/25] vmwgfx: Handle device surface memory limit

2011-09-28 Thread Thomas Hellstrom
Make surfaces swappable. Make sure we honor the maximum amount of surface memory the device accepts. This is done by potentially reading back surface contents not used by the current command submission and storing it locally in buffer objects. Signed-off-by: Thomas Hellstrom Reviewed-by: Jakob

[PATCH 22/25] vmwgfx: Make sure we always have a user-space handle to use for objects that are backing kms framebuffers.

2011-09-28 Thread Thomas Hellstrom
Signed-off-by: Thomas Hellstrom Reviewed-by: Jakob Bornecrantz --- drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 56 -- drivers/gpu/drm/vmwgfx/vmwgfx_kms.h |2 + 2 files changed, 41 insertions(+), 17 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c

[PATCH 21/25] vmwgfx: Optimize the command submission resource list

2011-09-28 Thread Thomas Hellstrom
Use a list for resources referenced during command submission, instead of an array. As long as we don't implement parallell command submission this works fine and simplifies things a bit. Signed-off-by: Thomas Hellstrom Reviewed-by: Jakob Bornecrantz --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.h

[PATCH 20/25] vmwgfx: Fix up query processing

2011-09-28 Thread Thomas Hellstrom
Previously, query results could be placed in any buffer object, but since we didn't allow pinned buffer objects, query results could be written when that buffer was evicted, corrupting data in other buffers. Now, require that buffers holding query results are no more than two pages large, and

[PATCH 19/25] vmwgfx: Allow reference and unreference of NULL fence objects.

2011-09-28 Thread Thomas Hellstrom
The execbuf utils may call reference on NULL fence objects. Signed-off-by: Thomas Hellstrom Reviewed-by: Jakob Bornecrantz --- drivers/gpu/drm/vmwgfx/vmwgfx_fence.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c

[PATCH 18/25] vmwgfx: minor dmabuf utilities cleanup

2011-09-28 Thread Thomas Hellstrom
Add / fix some function comments. Don't move out an fbdev framebuffer when unused. Just unpin. Only have a single function that computes a SVGAGuestPtr from the buffer's current placement, and make it more versatile by accepting a struct ttm_buffer_object Signed-off-by: Thomas Hellstrom

[PATCH 17/25] vmwgfx: Disallow user space to send present and readback commands

2011-09-28 Thread Thomas Hellstrom
From: Jakob Bornecrantz Signed-off-by: Jakob Bornecrantz Reviewed-by: Thomas Hellstrom --- drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 16 +--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c

[PATCH 16/25] vmwgfx: Add present and readback ioctls

2011-09-28 Thread Thomas Hellstrom
From: Jakob Bornecrantz Signed-off-by: Jakob Bornecrantz Signed-off-by: Thomas Hellstrom --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 13 +++ drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | 19 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c | 172 +

[PATCH 15/25] vmwgfx: Place overlays in GMR area if we can

2011-09-28 Thread Thomas Hellstrom
From: Jakob Bornecrantz When we hae screen objects we are allowed to place the overlay source in the GMR area, do this as this will save precious VRAM. Signed-off-by: Jakob Bornecrantz Reviewed-by: Thomas Hellstrom --- drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c | 134

[PATCH 14/25] vmwgfx: Drop 3D Legacy Display Unit support

2011-09-28 Thread Thomas Hellstrom
From: Jakob Bornecrantz Since 3D requires HWv8 and screen objects is always available on those hosts we only need the screen objects path for surfaces. Signed-off-by: Jakob Bornecrantz Signed-off-by: Thomas Hellstrom --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 10 +-

[PATCH 13/25] vmwgfx: Require HWV8 for 3d support

2011-09-28 Thread Thomas Hellstrom
On lower versions, the way we mix 2D and 3D may be too slow. Signed-off-by: Thomas Hellstrom Signed-off-by: Jakob Bornecrantz --- drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c

[PATCH 12/25] vmwgfx: Add screen object support

2011-09-28 Thread Thomas Hellstrom
From: Jakob Bornecrantz Signed-off-by: Jakob Bornecrantz Signed-off-by: Thomas Hellstrom --- drivers/gpu/drm/vmwgfx/Makefile |2 +- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 34 ++- drivers/gpu/drm/vmwgfx/vmwgfx_drv.h |1 + drivers/gpu/drm/vmwgfx/vmwgfx_kms.c |

[PATCH 11/25] vmwgfx: Add dmabuf helper functions for pinning

2011-09-28 Thread Thomas Hellstrom
From: Jakob Bornecrantz Signed-off-by: Jakob Bornecrantz Signed-off-by: Thomas Hellstrom --- drivers/gpu/drm/vmwgfx/Makefile |2 +- drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c | 33 drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c | 292 +++

[PATCH 10/25] vmwgfx: Refactor common display unit functions to shared file

2011-09-28 Thread Thomas Hellstrom
From: Jakob Bornecrantz More preparation for Screen Object support. Signed-off-by: Jakob Bornecrantz Signed-off-by: Thomas Hellstrom --- drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 238 +++ drivers/gpu/drm/vmwgfx/vmwgfx_kms.h | 31 -

[PATCH 09/25] vmwgfx: Expand the command checker to cover screen object commands

2011-09-28 Thread Thomas Hellstrom
From: Jakob Bornecrantz Signed-off-by: Jakob Bornecrantz Signed-off-by: Thomas Hellstrom --- drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 77 +-- 1 files changed, 72 insertions(+), 5 deletions(-) diff --git

[PATCH 08/25] vmwgfx: Break out dirty submission code

2011-09-28 Thread Thomas Hellstrom
From: Jakob Bornecrantz In preperation for screen objects, still leaves the delayed workqueue for surface updates in place. Signed-off-by: Jakob Bornecrantz Signed-off-by: Thomas Hellstrom --- drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 144 ++- 1

[PATCH 07/25] vmwgfx: Break out execbuf command processing

2011-09-28 Thread Thomas Hellstrom
This will make it easier to execute commands operating on user-space resources but generated by the kernel. JB: Added tracking if the sw_context was called from the kernel or userspace. Signed-off-by: Thomas Hellstrom Signed-off-by: Jakob Bornecrantz Reviewed-by: Jakob Bornecrantz ---

[PATCH 06/25] vmwgfx: Some comments and BUG_ON

2011-09-28 Thread Thomas Hellstrom
From: Jakob Bornecrantz Signed-off-by: Jakob Bornecrantz Reviewed-by: Thomas Hellstrom --- drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c

[PATCH 05/25] vmwgfx: Make sure the reserved area is at the start of vram

2011-09-28 Thread Thomas Hellstrom
From: Jakob Bornecrantz Signed-off-by: Jakob Bornecrantz Reviewed-by: Thomas Hellstrom --- drivers/gpu/drm/vmwgfx/vmwgfx_kms.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c

[PATCH 04/25] vmwgfx: Add comments for buffer pinning code

2011-09-28 Thread Thomas Hellstrom
From: Jakob Bornecrantz Signed-off-by: Jakob Bornecrantz Reviewed-by: Thomas Hellstrom --- drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c

[PATCH 03/25] vmwgfx: Document vmw_fifo_reserve

2011-09-28 Thread Thomas Hellstrom
From: Jakob Bornecrantz Signed-off-by: Jakob Bornecrantz Reviewed-by: Thomas Hellstrom --- drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c

[PATCH 02/25] vmwgfx: Update register files to latest from vmware-sdk

2011-09-28 Thread Thomas Hellstrom
From: Jakob Bornecrantz Signed-off-by: Jakob Bornecrantz Signed-off-by: Thomas Hellstrom --- drivers/gpu/drm/vmwgfx/svga3d_reg.h | 259 +++-- drivers/gpu/drm/vmwgfx/svga_escape.h |2 +- drivers/gpu/drm/vmwgfx/svga_overlay.h | 22 ++--

[PATCH 01/25] ttm: export ttm_bo_create

2011-09-28 Thread Thomas Hellstrom
Used by the vmwgfx driver. Signed-off-by: Thomas Hellstrom --- drivers/gpu/drm/ttm/ttm_bo.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index 56619f6..2b8b45a 100644 --- a/drivers/gpu/drm/ttm/ttm_bo.c +++

[PATCH -next 00/25] vmwgfx updates

2011-09-28 Thread Thomas Hellstrom
A series of updates to *) Deal with new device features like screen objects. *) Handle query buffer object pinning correctly. *) Make hardware surfaces swappable.

[Intel-gfx] PCH reference clock cleanups

2011-09-28 Thread Paulo Zanoni
2011/9/27 Keith Packard : > Here's a patch sequence which cleans up a bunch of PCH refclk related > bits. For the series: Tested-by: Paulo Zanoni Tested all the patches on Ironlake (LVDS + VGA). Fixes fd.o bug #38750 for me. I also tested the patch you sent today 1 hour ago (inline in one of

[Intel-gfx] PCH reference clock cleanups

2011-09-28 Thread Keith Packard
non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20110928/ce4d0a48/attachment.pgp>

[Bug 41263] [r600g] glCopyTexImage2D selects a texture format that involves fallback to software

2011-09-28 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=41263 --- Comment #3 from Simon Farnsworth 2011-09-28 10:28:33 PDT --- And I have confirmation that it's about choice of texture formats: the following patch "fixes" the bug for me (no doubt by adding hundreds more for other people). diff --git

[PATCH 6/9] drm/i915: Fix PCH SSC reference clock settings

2011-09-28 Thread Chris Wilson
On Tue, 27 Sep 2011 11:03:43 -0700, Keith Packard wrote: Non-text part: multipart/signed > On Tue, 27 Sep 2011 17:47:10 +0100, Chris Wilson chris-wilson.co.uk> wrote: > > On Mon, 26 Sep 2011 23:11:43 -0700, Keith Packard > > wrote: > > > The PCH refclk settings are global, so we need to look

[Bug 41263] [r600g] glCopyTexImage2D selects a texture format that involves fallback to software

2011-09-28 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=41263 --- Comment #2 from Simon Farnsworth 2011-09-28 10:07:53 PDT --- I think it may be core Mesa at fault. main/teximage.c:2779 gl_format texFormat = _mesa_choose_texture_format(ctx, texObj,

[PATCH 6/9] drm/i915: Fix PCH SSC reference clock settings

2011-09-28 Thread Keith Packard
on/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20110928/738c02f3/attachment.pgp>

[Bug 29951] [r300g] xscreensaver hack "antspotlight" reveals something other than desktop

2011-09-28 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=29951 --- Comment #14 from Tom Stellard 2011-09-28 05:20:41 PDT --- (In reply to comment #13) > (In reply to comment #12) > > Would you be able to post an apitrace(https://github.com/apitrace/apitrace)? > > I have created two apitraces, one for

[Bug 29951] [r300g] xscreensaver hack "antspotlight" reveals something other than desktop

2011-09-28 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=29951 --- Comment #13 from Chris Rankin 2011-09-28 04:06:58 PDT --- (In reply to comment #12) > Would you be able to post an apitrace(https://github.com/apitrace/apitrace)? I have created two apitraces, one for antspotlight working correctly and the

[Bug 41121] Apple Thunderbolt display is not initialized when plugged into iMac 12,2 (Radeon 6870)

2011-09-28 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=41121 Brad Campbell changed: What|Removed |Added Keywords||regression --- Comment #6 from Brad

[Bug 41121] Apple Thunderbolt display is not initialized when plugged into iMac 12,2 (Radeon 6870)

2011-09-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=41121 Brad Campbell b...@fnarfbargle.com changed: What|Removed |Added Keywords||regression ---

Re: [PATCH 6/9] drm/i915: Fix PCH SSC reference clock settings

2011-09-28 Thread Chris Wilson
On Tue, 27 Sep 2011 11:03:43 -0700, Keith Packard kei...@keithp.com wrote: Non-text part: multipart/signed On Tue, 27 Sep 2011 17:47:10 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: On Mon, 26 Sep 2011 23:11:43 -0700, Keith Packard kei...@keithp.com wrote: The PCH refclk settings are

[Bug 29951] [r300g] xscreensaver hack antspotlight reveals something other than desktop

2011-09-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29951 --- Comment #13 from Chris Rankin ranki...@googlemail.com 2011-09-28 04:06:58 PDT --- (In reply to comment #12) Would you be able to post an apitrace(https://github.com/apitrace/apitrace)? I have created two apitraces, one for antspotlight

[Bug 29951] [r300g] xscreensaver hack antspotlight reveals something other than desktop

2011-09-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29951 --- Comment #14 from Tom Stellard tstel...@gmail.com 2011-09-28 05:20:41 PDT --- (In reply to comment #13) (In reply to comment #12) Would you be able to post an apitrace(https://github.com/apitrace/apitrace)? I have created two apitraces,

[PATCH -next 00/25] vmwgfx updates

2011-09-28 Thread Thomas Hellstrom
A series of updates to *) Deal with new device features like screen objects. *) Handle query buffer object pinning correctly. *) Make hardware surfaces swappable. ___ dri-devel mailing list dri-devel@lists.freedesktop.org

[PATCH 01/25] ttm: export ttm_bo_create

2011-09-28 Thread Thomas Hellstrom
Used by the vmwgfx driver. Signed-off-by: Thomas Hellstrom thellst...@vmware.com --- drivers/gpu/drm/ttm/ttm_bo.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index 56619f6..2b8b45a 100644 ---

[PATCH 02/25] vmwgfx: Update register files to latest from vmware-sdk

2011-09-28 Thread Thomas Hellstrom
From: Jakob Bornecrantz ja...@vmware.com Signed-off-by: Jakob Bornecrantz ja...@vmware.com Signed-off-by: Thomas Hellstrom thellst...@vmware.com --- drivers/gpu/drm/vmwgfx/svga3d_reg.h | 259 +++-- drivers/gpu/drm/vmwgfx/svga_escape.h |2 +-

[PATCH 04/25] vmwgfx: Add comments for buffer pinning code

2011-09-28 Thread Thomas Hellstrom
From: Jakob Bornecrantz ja...@vmware.com Signed-off-by: Jakob Bornecrantz ja...@vmware.com Reviewed-by: Thomas Hellstrom thellst...@vmware.com --- drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git

[PATCH 03/25] vmwgfx: Document vmw_fifo_reserve

2011-09-28 Thread Thomas Hellstrom
From: Jakob Bornecrantz ja...@vmware.com Signed-off-by: Jakob Bornecrantz ja...@vmware.com Reviewed-by: Thomas Hellstrom thellst...@vmware.com --- drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git

[PATCH 05/25] vmwgfx: Make sure the reserved area is at the start of vram

2011-09-28 Thread Thomas Hellstrom
From: Jakob Bornecrantz ja...@vmware.com Signed-off-by: Jakob Bornecrantz ja...@vmware.com Reviewed-by: Thomas Hellstrom thellst...@vmware.com --- drivers/gpu/drm/vmwgfx/vmwgfx_kms.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c

[PATCH 06/25] vmwgfx: Some comments and BUG_ON

2011-09-28 Thread Thomas Hellstrom
From: Jakob Bornecrantz ja...@vmware.com Signed-off-by: Jakob Bornecrantz ja...@vmware.com Reviewed-by: Thomas Hellstrom thellst...@vmware.com --- drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git

[PATCH 08/25] vmwgfx: Break out dirty submission code

2011-09-28 Thread Thomas Hellstrom
From: Jakob Bornecrantz ja...@vmware.com In preperation for screen objects, still leaves the delayed workqueue for surface updates in place. Signed-off-by: Jakob Bornecrantz ja...@vmware.com Signed-off-by: Thomas Hellstrom thellst...@vmware.com --- drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 144

[PATCH 07/25] vmwgfx: Break out execbuf command processing

2011-09-28 Thread Thomas Hellstrom
This will make it easier to execute commands operating on user-space resources but generated by the kernel. JB: Added tracking if the sw_context was called from the kernel or userspace. Signed-off-by: Thomas Hellstrom thellst...@vmware.com Signed-off-by: Jakob Bornecrantz ja...@vmware.com

[PATCH 10/25] vmwgfx: Refactor common display unit functions to shared file

2011-09-28 Thread Thomas Hellstrom
From: Jakob Bornecrantz ja...@vmware.com More preparation for Screen Object support. Signed-off-by: Jakob Bornecrantz ja...@vmware.com Signed-off-by: Thomas Hellstrom thellst...@vmware.com --- drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 238 +++

[PATCH 11/25] vmwgfx: Add dmabuf helper functions for pinning

2011-09-28 Thread Thomas Hellstrom
From: Jakob Bornecrantz ja...@vmware.com Signed-off-by: Jakob Bornecrantz ja...@vmware.com Signed-off-by: Thomas Hellstrom thellst...@vmware.com --- drivers/gpu/drm/vmwgfx/Makefile |2 +- drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c | 33 drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c |

[PATCH 13/25] vmwgfx: Require HWV8 for 3d support

2011-09-28 Thread Thomas Hellstrom
On lower versions, the way we mix 2D and 3D may be too slow. Signed-off-by: Thomas Hellstrom thellst...@vmware.com Signed-off-by: Jakob Bornecrantz ja...@vmware.com --- drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

[PATCH 12/25] vmwgfx: Add screen object support

2011-09-28 Thread Thomas Hellstrom
From: Jakob Bornecrantz ja...@vmware.com Signed-off-by: Jakob Bornecrantz ja...@vmware.com Signed-off-by: Thomas Hellstrom thellst...@vmware.com --- drivers/gpu/drm/vmwgfx/Makefile |2 +- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 34 ++- drivers/gpu/drm/vmwgfx/vmwgfx_drv.h |1 +

[PATCH 14/25] vmwgfx: Drop 3D Legacy Display Unit support

2011-09-28 Thread Thomas Hellstrom
From: Jakob Bornecrantz ja...@vmware.com Since 3D requires HWv8 and screen objects is always available on those hosts we only need the screen objects path for surfaces. Signed-off-by: Jakob Bornecrantz ja...@vmware.com Signed-off-by: Thomas Hellstrom thellst...@vmware.com ---

[PATCH 15/25] vmwgfx: Place overlays in GMR area if we can

2011-09-28 Thread Thomas Hellstrom
From: Jakob Bornecrantz ja...@vmware.com When we hae screen objects we are allowed to place the overlay source in the GMR area, do this as this will save precious VRAM. Signed-off-by: Jakob Bornecrantz ja...@vmware.com Reviewed-by: Thomas Hellstrom thellst...@vmware.com ---

[PATCH 16/25] vmwgfx: Add present and readback ioctls

2011-09-28 Thread Thomas Hellstrom
From: Jakob Bornecrantz ja...@vmware.com Signed-off-by: Jakob Bornecrantz ja...@vmware.com Signed-off-by: Thomas Hellstrom thellst...@vmware.com --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 13 +++ drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | 19 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c | 172

[PATCH 17/25] vmwgfx: Disallow user space to send present and readback commands

2011-09-28 Thread Thomas Hellstrom
From: Jakob Bornecrantz ja...@vmware.com Signed-off-by: Jakob Bornecrantz ja...@vmware.com Reviewed-by: Thomas Hellstrom thellst...@vmware.com --- drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 16 +--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git

[PATCH 18/25] vmwgfx: minor dmabuf utilities cleanup

2011-09-28 Thread Thomas Hellstrom
Add / fix some function comments. Don't move out an fbdev framebuffer when unused. Just unpin. Only have a single function that computes a SVGAGuestPtr from the buffer's current placement, and make it more versatile by accepting a struct ttm_buffer_object Signed-off-by: Thomas Hellstrom

[PATCH 19/25] vmwgfx: Allow reference and unreference of NULL fence objects.

2011-09-28 Thread Thomas Hellstrom
The execbuf utils may call reference on NULL fence objects. Signed-off-by: Thomas Hellstrom thellst...@vmware.com Reviewed-by: Jakob Bornecrantz ja...@vmware.com --- drivers/gpu/drm/vmwgfx/vmwgfx_fence.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git

[PATCH 21/25] vmwgfx: Optimize the command submission resource list

2011-09-28 Thread Thomas Hellstrom
Use a list for resources referenced during command submission, instead of an array. As long as we don't implement parallell command submission this works fine and simplifies things a bit. Signed-off-by: Thomas Hellstrom thellst...@vmware.com Reviewed-by: Jakob Bornecrantz ja...@vmware.com ---

[PATCH 22/25] vmwgfx: Make sure we always have a user-space handle to use for objects that are backing kms framebuffers.

2011-09-28 Thread Thomas Hellstrom
Signed-off-by: Thomas Hellstrom thellst...@vmware.com Reviewed-by: Jakob Bornecrantz ja...@vmware.com --- drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 56 -- drivers/gpu/drm/vmwgfx/vmwgfx_kms.h |2 + 2 files changed, 41 insertions(+), 17 deletions(-) diff --git

[PATCH 23/25] vmwgfx: Handle device surface memory limit

2011-09-28 Thread Thomas Hellstrom
Make surfaces swappable. Make sure we honor the maximum amount of surface memory the device accepts. This is done by potentially reading back surface contents not used by the current command submission and storing it locally in buffer objects. Signed-off-by: Thomas Hellstrom thellst...@vmware.com

[PATCH 24/25] vmwgfx: Be more strict with fb depths when using screen objects

2011-09-28 Thread Thomas Hellstrom
From: Jakob Bornecrantz ja...@vmware.com Signed-off-by: Jakob Bornecrantz ja...@vmware.com Reviewed-by: Thomas Hellstrom thellst...@vmware.com --- drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 27 +++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git

[PATCH 25/25] vmwgfx: Bump driver minor to advertise support for new ioctls.

2011-09-28 Thread Thomas Hellstrom
Signed-off-by: Thomas Hellstrom thellst...@vmware.com --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h index ee564f0..8cce73e 100644 ---

[PATCH 09/25] vmwgfx: Expand the command checker to cover screen object commands

2011-09-28 Thread Thomas Hellstrom
From: Jakob Bornecrantz ja...@vmware.com Signed-off-by: Jakob Bornecrantz ja...@vmware.com Signed-off-by: Thomas Hellstrom thellst...@vmware.com --- drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 77 +-- 1 files changed, 72 insertions(+), 5 deletions(-) diff --git

[PATCH 20/25] vmwgfx: Fix up query processing

2011-09-28 Thread Thomas Hellstrom
Previously, query results could be placed in any buffer object, but since we didn't allow pinned buffer objects, query results could be written when that buffer was evicted, corrupting data in other buffers. Now, require that buffers holding query results are no more than two pages large, and

Re: [PATCH 6/9] drm/i915: Fix PCH SSC reference clock settings

2011-09-28 Thread Keith Packard
On Wed, 28 Sep 2011 10:09:13 +0100, Chris Wilson ch...@chris-wilson.co.uk wrote: My understanding was that we could not enable SSC at all if we had a VGA, DVI/HDMI or TV output; DP may or may not work with SSC. Yeah, which makes no sense at all. If this were true, we'd have to turn off the

[Bug 41263] [r600g] glCopyTexImage2D selects a texture format that involves fallback to software

2011-09-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=41263 --- Comment #2 from Simon Farnsworth simon.farnswo...@onelan.co.uk 2011-09-28 10:07:53 PDT --- I think it may be core Mesa at fault. main/teximage.c:2779 gl_format texFormat = _mesa_choose_texture_format(ctx, texObj,

[Bug 41263] [r600g] glCopyTexImage2D selects a texture format that involves fallback to software

2011-09-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=41263 --- Comment #3 from Simon Farnsworth simon.farnswo...@onelan.co.uk 2011-09-28 10:28:33 PDT --- And I have confirmation that it's about choice of texture formats: the following patch fixes the bug for me (no doubt by adding hundreds more for

Re: [Intel-gfx] PCH reference clock cleanups

2011-09-28 Thread Paulo Zanoni
2011/9/27 Keith Packard kei...@keithp.com: Here's a patch sequence which cleans up a bunch of PCH refclk related bits. For the series: Tested-by: Paulo Zanoni paulo.r.zan...@intel.com Tested all the patches on Ironlake (LVDS + VGA). Fixes fd.o bug #38750 for me. I also tested the patch you

Re: [Intel-gfx] PCH reference clock cleanups

2011-09-28 Thread Keith Packard
On Wed, 28 Sep 2011 15:22:48 -0300, Paulo Zanoni przan...@gmail.com wrote: I also tested the patch you sent today 1 hour ago (inline in one of the emails) and things still work with it. I'll keep using these patches since they fix my laptop. Any problem will be reported. Thanks. I think we're

[PATCH 9/9] drm/i915: Initialize PCH refclks at modeset init time

2011-09-28 Thread Keith Packard
The reference clock configuration must be done before any mode setting can occur as all outputs must be disabled to change anything. Initialize the clocks after turning everything off during the initialization process. Also, re-initialize the refclk at resume time. Signed-off-by: Keith Packard

[Bug 41263] [r600g] glCopyTexImage2D selects a texture format that involves fallback to software

2011-09-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=41263 Marek Olšák mar...@gmail.com changed: What|Removed |Added Product|DRI |Mesa

[Bug 29951] [r300g] xscreensaver hack antspotlight reveals something other than desktop

2011-09-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29951 --- Comment #15 from Tom Stellard tstel...@gmail.com 2011-09-28 22:15:41 PDT --- I ran the bad apitrace you sent me, and it looked the same on r300g and llvmpipe. I'm leaning toward this being a bug in xscreensaver, rather than in the driver.