[Mesa-dev] [PATCH] [rfc] radv: add initial prime support. (v2)

2016-12-12 Thread Dave Airlie
From: Dave Airlie This is a repost of the prime support with some minor changes, you no longer need to set DRI_PRIME for this code to figure out it's on a different GPU and do the linear transfers. In order to decide the default GPU I'll have to write a layer so I'll try and get to that soon. T

Re: [Mesa-dev] [PATCH] [rfc] radv: add initial prime support.

2016-12-09 Thread Mike Lothian
Hi This no longer applies cleanly since radv/meta: cleanup image info setup. 71a9574ffa1463773ad7587262bacc50ed37c042 Regards Mike On Wed, 23 Nov 2016 at 05:29 Dave Airlie wrote: > From: Dave Airlie > > This is kind of a gross hacks, but vulkan doesn't specify anything > but it would be nic

Re: [Mesa-dev] [PATCH] [rfc] radv: add initial prime support.

2016-11-23 Thread Dave Airlie
On 23 November 2016 at 21:13, Mike Lothian wrote: > I think it would be good to keep the DRI_PRIME switch to allow for switching > between anvil and radv, handy for testing / comparing / benchmarking both > > It seems that Vulkan automatically uses the first card listed in vulkaninfo > (in my case

Re: [Mesa-dev] [PATCH] [rfc] radv: add initial prime support.

2016-11-23 Thread Dave Airlie
On 23 November 2016 at 20:46, Nicolai Hähnle wrote: > On 23.11.2016 06:28, Dave Airlie wrote: >> >> From: Dave Airlie >> >> This is kind of a gross hacks, but vulkan doesn't specify anything >> but it would be nice to let people with prime systems at least >> see some stuff rendering for now. >>

Re: [Mesa-dev] [PATCH] [rfc] radv: add initial prime support.

2016-11-23 Thread Mike Lothian
It works with the Talos Principle and performs well, I'm seeing some artefacts in the grass which can be seen in https://imgur.com/a/3litB I'm not sure if that's caused by one of the LLVM bugs that have been mentioned On Wed, 23 Nov 2016 at 11:13 Mike Lothian wrote: > I think it would be good to

Re: [Mesa-dev] [PATCH] [rfc] radv: add initial prime support.

2016-11-23 Thread Mike Lothian
I think it would be good to keep the DRI_PRIME switch to allow for switching between anvil and radv, handy for testing / comparing / benchmarking both It seems that Vulkan automatically uses the first card listed in vulkaninfo (in my case it's the amdgpu card) with no way to select which is used,

Re: [Mesa-dev] [PATCH] [rfc] radv: add initial prime support.

2016-11-23 Thread Nicolai Hähnle
On 23.11.2016 06:28, Dave Airlie wrote: From: Dave Airlie This is kind of a gross hacks, but vulkan doesn't specify anything but it would be nice to let people with prime systems at least see some stuff rendering for now. This creates a linear shadow image in GART that gets blitted to at the i

Re: [Mesa-dev] [PATCH] [rfc] radv: add initial prime support.

2016-11-23 Thread Mike Lothian
You are a star :D I'll test this out tonight On Wed, 23 Nov 2016 at 05:29 Dave Airlie wrote: > From: Dave Airlie > > This is kind of a gross hacks, but vulkan doesn't specify anything > but it would be nice to let people with prime systems at least > see some stuff rendering for now. > > This

Re: [Mesa-dev] [PATCH] [rfc] radv: add initial prime support.

2016-11-23 Thread Gustaw Smolarczyk
2016-11-23 6:28 GMT+01:00 Dave Airlie : > From: Dave Airlie > > This is kind of a gross hacks, but vulkan doesn't specify anything > but it would be nice to let people with prime systems at least > see some stuff rendering for now. > > This creates a linear shadow image in GART that gets blitted

[Mesa-dev] [PATCH] [rfc] radv: add initial prime support.

2016-11-22 Thread Dave Airlie
From: Dave Airlie This is kind of a gross hacks, but vulkan doesn't specify anything but it would be nice to let people with prime systems at least see some stuff rendering for now. This creates a linear shadow image in GART that gets blitted to at the image transition. Now ideally: this would