Bug 1300 - convert vmware(4) to new Render hooks
Summary: convert vmware(4) to new Render hooks
Status: RESOLVED WONTFIX
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/VMWare (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: high major
Assignee: Nolan Leake
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-06 20:57 UTC by Adam Jackson
Modified: 2005-07-02 19:40 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
vmware-new-render-hooks-1.patch (4.24 KB, patch)
2004-09-06 20:57 UTC, Adam Jackson
no flags Details | Splinter Review
vmware-new-render-hooks-2.patch (4.76 KB, patch)
2004-09-14 09:20 UTC, Adam Jackson
no flags Details | Splinter Review
implement the new xaa interface for RENDER. (8.50 KB, patch)
2004-09-28 15:39 UTC, Nolan Leake
no flags Details | Splinter Review

Description Adam Jackson 2004-09-06 20:57:10 UTC
Render acceleration is effectively disabled in vmware due to the new setup
hooks.  Attached patch should fix it.
Comment 1 Adam Jackson 2004-09-06 20:57:35 UTC
Created attachment 832 [details] [review]
vmware-new-render-hooks-1.patch
Comment 2 Eric Anholt 2004-09-09 12:06:03 UTC
I'm interested in the issue, but I'd like to see this get tested (rendercheck)
first and I can't do that myself.
Comment 3 Adam Jackson 2004-09-14 09:20:58 UTC
Created attachment 897 [details] [review]
vmware-new-render-hooks-2.patch

d'oh, didn't get the dst format list filled in (same issue as bug #1293).
Comment 4 Nolan Leake 2004-09-14 16:09:02 UTC
The only supported dest format is the current framebuffer format.  I'll check in
a fix when I get a chance.
Comment 5 Nolan Leake 2004-09-28 15:39:49 UTC
Created attachment 977 [details] [review]
implement the new xaa interface for RENDER.

This new patch (based on ajax's) seems to work in informal testing, but fails
some rendercheck tests:

$ grep error render-accel.out |cut -d' ' -f1-3|sort | uniq -c
     24 Add composite test
     32 Atop composite test
     32 In composite test
     32 Over composite test
     32 Src composite test
     36 Xor blend test
     72 Xor composite test

I'll have to look further into it.  I may end up just tearing out RENDER accel
completely; it doesn't appear to be a performance win.
Comment 6 Stefan Dirsch 2005-04-16 10:22:02 UTC
Any news on this one? What is recommened for now? Applying the patch, which 
results in some render failures or not applying the patch at all? Looking at 
the patch it seems that even the number of parameters of the render functions 
is wrong ... 
 
Example (vmwareSetupForCPUToScreenAlphaTexture): 
 
-         int alphaType, CARD8 *alphaPtr, 
+         CARD32 maskFormat, 
+         CARD32 dstFormat, 
+         CARD8 *alphaPtr, 
 
Or should one disable RENDER completely for vmware. Currently it seems to be 
enabled. 
Comment 7 Nolan Leake 2005-04-18 11:25:37 UTC
For the moment, disabling render acceleration is your best bet.
Comment 8 Adam Jackson 2005-04-18 11:55:32 UTC
Render accel is effectively disabled in the vmware driver right now.  there are
two sets of renderaccel hooks in XAA, old style and new style.  vmware fills in
hooks for the old style, but they're never called from XAA anymore.

if we leave the patch out then the vmware driver will always use the software
Render path, which conforms.
Comment 9 Stefan Dirsch 2005-04-18 12:05:07 UTC
Thanks. Finally I understand, why the patch is not required. 
Comment 10 Adam Jackson 2005-07-03 12:40:48 UTC
no performance gain, and not conforming in its current state, and also XAA
sucks.  let's close this one; if exa-based renderaccel is a win for vmware, make
a new bug for it.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.