Re: [Mesa-dev] Can't get OpenGL 3.x inside VMware Workstation 12 (Ubuntu guest)

2015-11-13 Thread Valera Rozuvan
Hi Brian,

The updated instructions worked for me. Thank you = )

Regards,
Valera Rozuvan | http://valera.rozuvan.net/

Skype: valera.rozuvan
E-mail: valera.rozu...@gmail.com
Phone: +38 (050) 837-29-73



On Wed, Nov 11, 2015 at 11:18 PM, Emil Velikov <emil.l.veli...@gmail.com> wrote:
> On 11 November 2015 at 19:51, Brian Paul <bri...@vmware.com> wrote:
>> On 11/11/2015 11:38 AM, Emil Velikov wrote:
>>>
>>> On 11 November 2015 at 18:25, Thomas Hellstrom <thellst...@vmware.com>
>>> wrote:
>>>>
>>>> On 11/11/2015 07:07 PM, Brian Paul wrote:
>>>>>
>>>>> On 11/11/2015 10:44 AM, Emil Velikov wrote:
>>>>>>
>>>>>> On 11 November 2015 at 16:48, Brian Paul <bri...@vmware.com> wrote:
>>>>>>>
>>>>>>> On 11/11/2015 08:44 AM, Emil Velikov wrote:
>>>>>>
>>>>>>
>>>>>>>>
>>>>>>>> I have seen similar type of documents in the past, most of which
>>>>>>>> going
>>>>>>>> out of date very quickly due to distribution changes and/or others.
>>>>>>>> Wondering how you'll feel about "check your distro and add svga to
>>>>>>>> the
>>>>>>>> gallium-drivers array" style of instructions ?
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> I'm afraid I don't quite understand what you're saying there.  Can you
>>>>>>> elaborate?
>>>>>>>
>>>>>>>
>>>>>> Rather than walking through the requirements, configure and make/make
>>>>>> install steps, just forward people to the distro specific wiki on "how
>>>>>> to build mesa/kernel" and explicitly mention the differences:
>>>>>> mesa:
>>>>>> - XA must be enabled: --enable-xa
>>>>>> - svga must be listed in the gallium drivers:
>>>>>> --with-gallium-drivers=svga...
>>>>>>
>>>>>> kernel:
>>>>>>- Set DRM_VMWGFX
>>>>>>
>>>>>> others...
>>>>>
>>>>>
>>>>> I guess I've never seen those wikis.  I'd have to search for them, but
>>>>> I really don't have the time now.
>>>>>
>>>>> We actually have an in-house shell script that installs all the
>>>>> pre-req packages, pulls the git trees, builds and installs for a
>>>>> variety of guest OSes.  But it has some VMware-specific stuff that I'd
>>>>> have to trim out before making public.
>>>>>
>>>>>
>>>>>>
>>>>>> Related: does the upstream [1] vmwgfx module work well when combined
>>>>>> with upstream core drm across different versions ? Considering how
>>>>>> well Thomas is handling upstreaming shouldn't the module from the
>>>>>> kernel be recommended ?
>>>>>
>>>>>
>>>>> Either should be fine at this point but the build instructions cover
>>>>> the case of one having an older distro that may not have the
>>>>> GL3-enabled kernel module already.
>>>>>
>>>>
>>>> The upstream[1] vmwgfx module should work well with any linux kernel
>>>> dating back to 2.6.32 unless the distro has changed the kernel API from
>>>> the base version. It ships with builtin stripped drm and ttm to handle
>>>> compatibility issues, and is intended for people (mostly including
>>>> ourselves and our QA team) that want to try out new features without
>>>> installing a completely new kernel.
>>>>
>>> Ok seems that my point is too subtle, so I'll try from another angle.
>>>
>>> The wiki instructions say "nuke he vmwgfx.ko module" and implicitly
>>> "keep drm.ko". If we ignore the unlikely cases where either one and/or
>>> both is built-in, we can have a case where the new vmwgfx is build
>>> against core drm from the upstream, yet the downstream drm module
>>> is/gets loaded. As core drm often goes through various changes, you
>>> can see how bad things are likely to happen.
>>
>>
>> Well, the above-mentioned build script doesn't touch drm.ko and works on
>> about 14 different versions of Ubuntu, Mint, Fedora, RHEL, etc. so I don't
>> think we've ever seen that conflict.  But if someone's doing their own
>> kernel/graphics builds/installs, who knows.  If it comes up, we'll just have
>> to address it.
>>
> Ouch... I see what's happening here. You're not using any of the
> kernel core drm/ttm/foo - you're just static linking the local ones
> into vmwgfx.ko. This will explain why the lack of issues.
>
> Well played guys !
>
> Cheers,
> Emil
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] Can't get OpenGL 3.x inside VMware Workstation 12 (Ubuntu guest)

2015-11-10 Thread Valera Rozuvan
On Tue, Nov 10, 2015 at 4:13 AM, Brian Paul <bri...@vmware.com> wrote:
> After running depmod, you probably need to update the initramfs with: 'sudo 
> update-initramfs -u'
>
> -Brian

Hi Brian. First of all, thank you for your reply. I have tried your
suggestion on my working setup, and also doing everything again from
scratch. Basically, I get the same result - everything goes smoothly,
but in the end OpenGL is version 2.1. I even tried to run a simple
OpenGL 3.x program, and it crashes (simple OpenGL 2.1 program runs
fine).

Can you please spend an hour and try the instructions from
http://www.mesa3d.org/vmware-guest.html on a clean VMware Workstation
12 Player for Windows 64-bit (host), and Ubuntu 15.10 (guest)? It
would be very awesome if you can get OpenGL 3.x running in VMware 12,
and update the instructions. I am sure there is some critical piece
missing.

Thank you! = )

Regards,
Valera Rozuvan | http://valera.rozuvan.net/

Skype: valera.rozuvan
E-mail: valera.rozu...@gmail.com
Phone: +38 (050) 837-29-73
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] Can't get OpenGL 3.x inside VMware Workstation 12 (Ubuntu guest)

2015-11-09 Thread Valera Rozuvan
Hi,

I have been trying to follow the instructions from the page
http://www.mesa3d.org/vmware-guest.html . My host OS is Windows 7, which
has OpenGL 4.3 and DX11, my Guest OS is Ubuntu 15.10 with custom Linux
kernel 4.3. Please see detailed output from various host Ubuntu subsystems
at http://pastebin.com/Kukct9Xn . Also, I have dual GPU: Intel(R) HD
Graphics 4600 and NVIDIA GeForce GT 750M.

I have followed all of the instructions, but sill get OpenGL 2.1. What else
can I try?

By the way, on the page http://www.mesa3d.org/vmware-guest.html the step:

sudo cp 00-vmwgfx.rules /etc/udev/rules.d

can't be completed, because the file 00-vmwgfx.rules is not in the vmwgfx
folder. I got this file from
http://sourceforge.net/p/thinstation/thinstation-5/ci/c9c66d2e93fed90fa0c985df93adf3e66522bda5/tree/ts/5.2/packages/systemd/build/extra/etc/udev/rules.d/00-vmwgfx.rules
. Is this acceptable?

Also, the command "sudo depmod -ae" complains about improper command line
options.

Any input on my problem will be very welcome!

Regards,
Valera Rozuvan | http://valera.rozuvan.net/

Skype: valera.rozuvan
E-mail: valera.rozu...@gmail.com
Phone: +38 (050) 837-29-73
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev