Re: Install a second set of mesa's vulkan drivers in parallel and use them by default using drop-in files only?

2025-02-03 Thread David Airlie
gt; > I'm not familiar with vulkan-loader's code, but I think that the sorting > > happens here (compare_devices() function): > > [...] > > I'd try to report the bug there, maybe they can clarify if ICD is taken > > into account in this case. > &g

Re: Install a second set of mesa's vulkan drivers in parallel and use them by default using drop-in files only?

2025-01-28 Thread David Airlie
On Wed, Jan 29, 2025 at 4:52 AM Thorsten Leemhuis wrote: > > Lo! Is it possible to install mesa's vulkan drivers in parallel to the > ones from the Linux distro and make all apps used them by default using > drop-in files only? > > I'm asking, as I want to provide a RPM package with in a 3rd party

Re: Mesa is painful to bisect, I hope this can be improved

2024-11-18 Thread David Heidelberg
itely more universal solution, but as someone may benefit from this repo, wanted to mention it. David This would make bisecting very straightforward for most uses cases. Once one gets the before/after boundaries of the bibisect, one can finish the bisect by building the few remaining commits from

Re: Gallium Nine, end of the road

2024-09-30 Thread David Heidelberg
We can deploy more widely Nine tests in CI, as Pavel Ondračka did for r300, so we'll be sure basivs are still in good shape. David Original Message From: Axel Davy Sent: September 29, 2024 4:25:13 PM UTC To: Martin Roukala , mesa-dev@lists.freedesktop.org Subjec

Mesa vs RocM opencl perf differences

2023-05-09 Thread Dr. David Alan Gilbert
ofile OpenCL 3.0 -- -Open up your eyes, open up your mind, open up your code --- / Dr. David Alan Gilbert| Running GNU/Linux | Happy \ \dave @ treblig.org | | In Hex / \ _|_ http://www.treblig.org |___/

Re: [Mesa-dev] [PATCH] gpu/docs: Clarify what userspace means for gl

2019-04-24 Thread Zhou, David(ChunMing)
developers work on, cannot upstream as well? I think above two would easily happen, because there are many employees working on company project with many customer kinds of reqiurements, but mesa not. -David Original Message Subject: [PATCH] gpu/docs: Clarify what userspace means for

[Mesa-dev] POLL Do you want RTX? Cross-website-post.

2019-02-15 Thread David Niklas
the past 23 hours have gotten 5 votes! :( I am posting to this ML and several other places in hopes of getting a better turnout. Thanks for you vote. Please comment on the actual LQ poll page not this email. David -BEGIN PGP SIGNATURE- iQIzBAEBCAAdFiEEL2N7

Re: [Mesa-dev] Make Jordan an Owner of the mesa project?

2018-12-03 Thread David Airlie
On Tue, Dec 4, 2018 at 10:49 AM Jason Ekstrand wrote: > > Jordan has requested to be made an Owner of the mesa project. As much as I > may be the guy who pushed to get everything set up, I don't want to do this > sort of thing on my own. As such, I'm asking for some ACKs. If I can get 5 > AC

[Mesa-dev] [PATCH 1/1] util: Change remaining uint32 cache ids to sha1

2018-10-23 Thread David McFarland
After discussion with Timothy Arceri. disk_cache_get_function_identifier was using only the first byte of the sha1 build-id. Replace disk_cache_get_function_identifier with implementation from radv_get_build_id. Instead of writing a uint32_t it now writes to a mesa_sha1. All drivers using disk_c

[Mesa-dev] [PATCH 0/1] util: Change remaining uint32 cache ids to sha1

2018-10-23 Thread David McFarland
t not nouveau or r600. David McFarland (1): util: Change remaining uint32 cache ids to sha1 src/amd/vulkan/radv_device.c | 22 +-- src/gallium/drivers/nouveau/nouveau_screen.c | 29 - src/gallium/drivers/r600/r600_pipe_common.c | 43 ++--- src/gallium/dr

Re: [Mesa-dev] [PATCH 0/4] virgil: fix crash when mapping ms-texture

2018-09-06 Thread David Airlie
On Thu, Sep 6, 2018 at 7:58 PM, Erik Faye-Lund wrote: > Here's a series of patches to address a crash when mapping multisampled > textures in piglit. The crash can easily be reproduce using the > following command: > > bin/copyteximage 2D -samples=2 -auto > > However, it's not clear to me if this

Re: [Mesa-dev] [PATCH] drisw: Fix build on Android Nougat, which lacks shm (v2)

2018-08-02 Thread David Airlie
On Tue, Jul 31, 2018 at 1:17 PM, Chad Versace wrote: > In commit cf54bd5e8, dri_sw_winsys.c began using to support > the new functions putImageShm, getImageShm in DRI_SWRastLoader. But > Android began supporting System V shared memory only in Oreo. Nougat has > no shm headers. > > Fix the build

Re: [Mesa-dev] [PATCH v2 2/2] egl/surfaceless: Allow DRMless fallback.

2018-07-26 Thread David Riley
On Thu, Jul 26, 2018 at 7:30 AM Emil Velikov wrote: > Hi David, > > Hi Emil, Thanks for the comments. > On 18 July 2018 at 01:12, David Riley wrote: > > Allow platform_surfaceless to use swrast even if DRM is not available. > > To be used to allow a fuzzer for virgl

Re: [Mesa-dev] [PATCH v2 1/2] egl/surfaceless: Define DRI_SWRastLoader extension when using swrast.

2018-07-26 Thread David Riley
On Thu, Jul 26, 2018 at 7:22 AM Emil Velikov wrote: > Hi David, > > On 18 July 2018 at 01:12, David Riley wrote: > > Commit message here should explain why this is needed. Is the current > kms_swrast usage failing/crashing somewhere, etc. > The change wasn't neede

Re: [Mesa-dev] [PATCH v2 0/2] Add DRMless surfaceless fallback path.

2018-07-25 Thread David Riley
Ping for this patch set. On Tue, Jul 17, 2018 at 5:12 PM David Riley wrote: > Allow platform_surfaceless to use swrast even if DRM is not available. > To be used to allow a fuzzer for virgl to be run on a jailed VM without > hardware GL or DRM support. > > v2: Comment style f

Re: [Mesa-dev] [PATCH] drisw: Fix build on Android Nougat

2018-07-24 Thread David Airlie
On Thu, Jul 19, 2018 at 10:43 AM, Chad Versace wrote: > In commit cf54bd5e8, dri_sw_winsys.c began using to support > the new functions putImageShm, getImageShm in DRI_SWRastLoader. But > Android began supporting System V shared memory only in Oreo. Nougat has > no shm headers. > > Fix the build

[Mesa-dev] [RFC][PATCH] gallivm: Clean up llvm data structures upon destruction.

2018-07-18 Thread David Riley
Without this change, dlopen()/dlclose() of any driver results in memory being leaked which becomes problematic if things are being reinitialized repeatedly (eg from a fuzzer). Even with this change, repeated dlopen()/dlclose() results in a single LLVM mutex being allocated and never freed (used to

[Mesa-dev] [PATCH v2 1/2] egl/surfaceless: Define DRI_SWRastLoader extension when using swrast.

2018-07-17 Thread David Riley
Signed-off-by: David Riley --- src/egl/drivers/dri2/platform_surfaceless.c | 28 + 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/src/egl/drivers/dri2/platform_surfaceless.c b/src/egl/drivers/dri2/platform_surfaceless.c index a0348a5e95..f5fe7119c6 100644

[Mesa-dev] [PATCH v2 2/2] egl/surfaceless: Allow DRMless fallback.

2018-07-17 Thread David Riley
Allow platform_surfaceless to use swrast even if DRM is not available. To be used to allow a fuzzer for virgl to be run on a jailed VM without hardware GL or DRM support. Signed-off-by: David Riley --- src/egl/drivers/dri2/platform_surfaceless.c | 19 +++ 1 file changed, 19

[Mesa-dev] [PATCH v2 0/2] Add DRMless surfaceless fallback path.

2018-07-17 Thread David Riley
Allow platform_surfaceless to use swrast even if DRM is not available. To be used to allow a fuzzer for virgl to be run on a jailed VM without hardware GL or DRM support. v2: Comment style fixes and remove redundant assignment. David Riley (2): egl/surfaceless: Define DRI_SWRastLoader

[Mesa-dev] [PATCH 1/2] egl/surfaceless: Define DRI_SWRastLoader extension when using swrast.

2018-07-12 Thread David Riley
Signed-off-by: David Riley --- src/egl/drivers/dri2/platform_surfaceless.c | 28 +++- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/src/egl/drivers/dri2/platform_surfaceless.c b/src/egl/drivers/dri2/platform_surfaceless.c index a0348a5..f5fe711 100644

[Mesa-dev] [PATCH 2/2] egl/surfaceless: Allow DRMless fallback.

2018-07-12 Thread David Riley
Allow platform_surfaceless to use swrast even if DRM is not available. To be used to allow a fuzzer for virgl to be run on a jailed VM without hardware GL or DRM support. Signed-off-by: David Riley --- src/egl/drivers/dri2/platform_surfaceless.c | 20 1 file changed, 20

Re: [Mesa-dev] [PATCH v4] virgl: Add support for glGetMultisample

2018-07-09 Thread David Airlie
On Tue, Jul 10, 2018 at 4:44 PM, Gert Wollny wrote: > Am Dienstag, den 10.07.2018, 09:19 +1000 schrieb Dave Airlie: > > > > Just FYI in future please don't push mesa patches until the renderer > > side patch has landed, this is to avoid the abi accidentally > > diverging around the caps. > Sure,

Re: [Mesa-dev] [PATCH 1/1] drisw: Fix invalid pointer arithmetic

2018-06-07 Thread David Airlie
On Fri, Jun 8, 2018 at 9:59 AM, Jan Vesely wrote: > Use of void * in pointer arithmetic is illegal, use char * instead. > Fixes: cf54bd5e8381dba18d52fe438acda20cc1685bf3 ("drisw: use shared > memory when possible") > > Signed-off-by: Jan Vesely > Reviewed-by: Dave Airlie __

Re: [Mesa-dev] [PATCH 1/7] vulkan: Add KHR_display extension to anv and radv using DRM

2018-03-28 Thread Mao, David
etend to have multiple plane? Thanks. Best Regards, David -Original Message- From: dri-devel [mailto:dri-devel-boun...@lists.freedesktop.org] On Behalf Of Keith Packard Sent: Saturday, February 10, 2018 12:45 PM To: mesa-dev@lists.freedesktop.org Cc: Keith Packard ; d

Re: [Mesa-dev] [PATCH 2/2] radv: Implement VK_EXT_discard_rectangles.

2018-01-11 Thread Mao, David
Oh. I see. I was distracted by the hard coded 16! Thanks. Best Regards, David -Original Message- From: Bas Nieuwenhuizen [mailto:b...@basnieuwenhuizen.nl] Sent: Thursday, January 11, 2018 9:29 PM To: Mao, David Cc: mesa-dev@lists.freedesktop.org Subject: Re: [Mesa-dev] [PATCH 2/2

Re: [Mesa-dev] [PATCH 2/2] radv: Implement VK_EXT_discard_rectangles.

2018-01-11 Thread Mao, David
ag for all combinations of four rectangles that pixel could be finally determined as inside. Thanks. Best Regards, David -Original Message- From: Bas Nieuwenhuizen [mailto:b...@basnieuwenhuizen.nl] Sent: Thursday, January 11, 2018 5:59 PM To: Mao, David Cc: mesa-dev@lists.freedesktop.org S

Re: [Mesa-dev] [PATCH 2/2] radv: Implement VK_EXT_discard_rectangles.

2018-01-10 Thread Mao, David
, David -Original Message- From: mesa-dev [mailto:mesa-dev-boun...@lists.freedesktop.org] On Behalf Of Bas Nieuwenhuizen Sent: Wednesday, January 10, 2018 10:34 AM To: mesa-dev@lists.freedesktop.org Cc: Bas Nieuwenhuizen Subject: [Mesa-dev] [PATCH 2/2] radv: Implement

Re: [Mesa-dev] [PATCH] radv: Add support for ETC2 textures.

2018-01-03 Thread Mao, David
Hi Bas, AMD does not support ETC2 officially on the GFX9. It would be risky for Radv to export that feature for gfx9 family. Anyway, t’s just a heads up, and it is up to you to make the final call. FYI: AMDVLK and proprietary AMD vulkan driver don’t’ support that. Thanks. Best Regards, David

Re: [Mesa-dev] Initial release of AMD Open Source Driver for Vulkan

2017-12-22 Thread Mao, David
version as well as your distro? Thanks. Best Regards, David On Dec 22, 2017, at 9:48 PM, Mike Lothian mailto:m...@fireburn.co.uk>> wrote: Congratulations on getting this out the door It didn't compile for me without these changes: In pal: diff --git a/src/util/math.cpp b/src/util/mat

[Mesa-dev] Initial release of AMD Open Source Driver for Vulkan

2017-12-22 Thread Mao, David
We are pleased to announce the initial release of AMD Open Source Driver for Vulkan. The AMD Open Source Driver for Vulkan is an open-source Vulkan driver for Radeon graphics adapters on Linux. It is built on top of AMD's Platform Abstraction Library (PAL), a shared component that is designed

[Mesa-dev] What is the difference between ROCm and Clover?

2017-09-03 Thread David Niklas
Hello, I'm interested in knowing why there are two different OpenCL implementations of OpenCL drivers for AMD cards. Is it because they support different ASICs? One is older and going to be replaced? Thanks, David ___ mesa-dev mailing list mes

Re: [Mesa-dev] [Intel-gfx] [libdrm PATCH] intel: Make unsynchronized GTT mappings work on systems with snooping.

2017-03-13 Thread David Weinehall
for detiling Y to WC you need to > use a temporary cacheable page, or rearrange the code to make sure the > reads/writes are in 64 byte chunks.) Again, I can run any tests you'd like to get numbers from, just give me a list. Kind regards, David ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 1/4] gallium: Add integer 64 capability

2017-01-26 Thread David Airlie
- Original Message - > From: "Marek Olšák" > To: "Nicolai Hähnle" > Cc: "Ilia Mirkin" , mesa-dev@lists.freedesktop.org, > "Dave Airlie" > Sent: Friday, 27 January, 2017 6:18:32 AM > Subject: Re: [Mesa-dev] [PATCH 1/4] gallium: Add integer 64 capability > > On Thu, Jan 26, 2017 at 9:0

Re: [Mesa-dev] GBM backend dynamic dispatch method

2016-05-16 Thread Mao, David
aller's responsibility to query EGL implementation to get the gem_flink-name then calls gbm to import from system primitives. With that we even don't need to add more callbacks for new platforms, like wayland and mir. Thanks. Best Regards, David __

Re: [Mesa-dev] [PATCH] glsl: remove specical case subroutine type counting

2015-08-30 Thread David Airlie
> On Sun, 2015-08-09 at 16:25 +1000, Timothy Arceri wrote: > > Unlike samplers we can get the correct value for subroutines from > > component_slots() Reviewed-by: Dave Airlie > > --- > > src/glsl/link_uniforms.cpp | 5 ++--- > > 1 file changed, 2 insertions(+), 3 deletions(-) > > > > diff --g

Re: [Mesa-dev] What branch to get patch 47790

2015-06-16 Thread Meng, David
Hi Ken: Thank you very much for pointing out the issue. We are using Mesa 10.4.0. We will check a later Mesa version to see if we can resolve the problem. I will check if we have a patch which results in blit_texture_to_pbo() is directly called by brw_blorp_blit_miptrees(). Regards, David

Re: [Mesa-dev] What branch to get patch 47790

2015-06-16 Thread Meng, David
Hi Ken: Thank you for the help and clarification. The back trace we got from the dump file is in blow. The brw_blorp_exec() is called in the thread 1. We do not have other major patches in the Mesa but some small patches. I can find them if you need. Regards, David --back

Re: [Mesa-dev] What branch to get patch 47790

2015-06-16 Thread Meng, David
top.org/patch/47790 With my best regards, David -Original Message- From: Kenneth Graunke [mailto:kenn...@whitecape.org] Sent: Tuesday, June 16, 2015 3:46 PM To: Meng, David Cc: mesa-dev@lists.freedesktop.org Subject: Re: [Mesa-dev] What branch to get patch 47790 On Tuesday, June 16, 2015 10

Re: [Mesa-dev] What branch to get patch 47790

2015-06-16 Thread Meng, David
Thank you Anuj. -Original Message- From: Anuj Phogat [mailto:anuj.pho...@gmail.com] Sent: Tuesday, June 16, 2015 3:35 PM To: Meng, David Cc: mesa-dev@lists.freedesktop.org; Pohjolainen, Topi Subject: Re: [Mesa-dev] What branch to get patch 47790 Adding Topi to Cc. On Tue, Jun 16, 2015

[Mesa-dev] What branch to get patch 47790

2015-06-16 Thread Meng, David
are using Mesa library in user space. But I could not find this patch in mesa master or any branches. Would you please pint me where I can find a branch including this patch? I highly appreciate any help. Regards, David patch title and description

Re: [Mesa-dev] [PATCH 2/2] r300g: small code cleanup

2015-02-06 Thread David Heidelberg
Ok, I'll do. About MAX_PREDS, maybe it's time to bring it out again :) On 02/06/2015 06:16 PM, Marek Olšák wrote: You can update MAX_PREDS in this patch. I proposed removing predicates a long time ago, but some people disagreed. Marek On Fri, Feb 6, 2015 at 5:19 PM, David Heidelb

Re: [Mesa-dev] [PATCH 2/2] r300g: small code cleanup

2015-02-06 Thread David Heidelberg
Should I incorporate PIPE_SHADER_CAP_MAX_PREDS change in this patch or send another with idea of dropping PIPE_SHADER_CAP_MAX_PREDS completly from gallium, if there is no use? David On 02/06/2015 04:41 PM, Marek Olšák wrote: This looks good with one exception: MAX_PREDS should be 0 for all

Re: [Mesa-dev] [PATCH 2/2] r300g: small code cleanup

2015-02-05 Thread David Heidelberg
On 02/06/2015 12:57 AM, Matt Turner wrote: On Thu, Feb 5, 2015 at 2:56 PM, David Heidelberg wrote: Signed-off-by: David Heidelberg --- This is not a small clean up. This is removing a bunch of potentially informative comments. I checked sources & docs: * all unsure comments has

Re: [Mesa-dev] [PATCH 1/2] r300g: handle unsupported blend factor gracefully

2015-02-05 Thread David Heidelberg
these days all (r600+,nv50+) modern HW support PIPE_CAP_MAX_DUAL_SOURCE_RENDER_TARGETS Konsole output which r300 don't. Instead of adding another expensive checks to Nine, this is way to simply avoid it and do not cause assertion at no cost. David On 02/06/2015 12:59 AM, Matt Turner

[Mesa-dev] [PATCH 1/2] r300g: handle unsupported blend factor gracefully

2015-02-05 Thread David Heidelberg
Rather not assert on known factors, just print warning and use ZERO. Signed-off-by: David Heidelberg --- src/gallium/drivers/r300/r300_state_inlines.h | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/gallium/drivers/r300/r300_state_inlines.h b/src/gallium

[Mesa-dev] [PATCH 2/2] r300g: small code cleanup

2015-02-05 Thread David Heidelberg
Signed-off-by: David Heidelberg --- src/gallium/drivers/r300/r300_reg.h| 22 ++ src/gallium/drivers/r300/r300_screen.c | 4 +--- src/gallium/drivers/r300/r300_state.c | 1 - 3 files changed, 3 insertions(+), 24 deletions(-) diff --git a/src/gallium/drivers/r300

Re: [Mesa-dev] [PATCH 2/2] mesa: Fix some signed-unsigned comparison warnings

2015-01-14 Thread David Heidelberg
(get_src_arg_mask(inst,j,NO_MASK) & mask))) return READ; } @@ -944,7 +944,7 @@ update_interval(GLint intBegin[], GLint intEnd[], struct loop_info *loopStack, GLuint loopStackDepth, GLuint index, GLuint ic) { - int

Re: [Mesa-dev] [PATCH v2 50/52] st/nine: Explicit nine requirements

2015-01-10 Thread David Heidelberg
I'd prefer not have to revert this patch on my personal r400 based RS690 (laptop AMD X1250). You're correct, that most of applications won't run. Still, there are some earlier DX9 apps, which runs and LFS which shows really visible performance boost from unplayable 10 fps to 20-25fps fps. As

[Mesa-dev] [PATCH] st/nine: fix DBG typo (trivial)

2014-12-19 Thread David Heidelberg
Signed-off-by: David Heidelberg --- src/gallium/state_trackers/nine/device9.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c index b0e42eb..1d97688 100644 --- a/src/gallium/state_trackers

[Mesa-dev] [PATCH] r300g: implement ARR opcode

2014-12-19 Thread David Heidelberg
Same as ARL, just has extra rounding. Useful for st/nine. Tested-by: Pavel Ondračka Reviewed-by: Marek Olšák Signed-off-by: David Heidelberg --- src/gallium/drivers/r300/compiler/r3xx_vertprog.c | 7 --- src/gallium/drivers/r300/compiler/radeon_opcodes.c | 7 +++ src/gallium/drivers

[Mesa-dev] [PATCH v3] st/nine: Use gallium caps to get if queries are supported. (v2)

2014-11-24 Thread David Heidelberg
From: Axel Davy Some queries need the driver to advertise a cap to be supported. For example r300 doesn't support them. v2 (David): check also for PIPE_CAP_QUERY_PIPELINE_STATISTICS, fix wine tests on r300g Cc: "10.4" Reviewed-by: David Heidelberg Signed-of

[Mesa-dev] [PATCH v3 19/19] st/nine: Queries: Always return D3D_OK when issuing with D3DISSUE_BEGIN

2014-11-24 Thread David Heidelberg
From: Axel Davy This is the behaviour that wine tests. Cc: "10.4" Reviewed-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/query9.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/query

[Mesa-dev] [PATCH v3 18/19] st/nine: Queries: always succeed for D3DQUERYTYPE_TIMESTAMP when flushing

2014-11-24 Thread David Heidelberg
From: Axel Davy This is the behaviour that Wine tests Cc: "10.4" Tested-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/query9.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/state_trackers/nine/query9.c b/src/gallium/stat

[Mesa-dev] [PATCH v3 16/19] st/nine: Queries: Fix D3DISSUE_END behaviour.

2014-11-24 Thread David Heidelberg
From: Axel Davy Issuing D3DISSUE_END should: . reset previous queries if possible . end the query Previous behaviour wasn't calling end_query for queries not needing D3DISSUE_BEGIN, no resetting previous queries. Cc: "10.4" Tested-by: David Heidelberg Signed-off-by: Axel

[Mesa-dev] [PATCH v3 15/19] st/nine: return S_FALSE instead of INVALIDCALL when in building query state

2014-11-24 Thread David Heidelberg
From: Axel Davy It is the same behaviour as wine has. Cc: "10.4" Reviewed-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/query9.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/query

[Mesa-dev] [PATCH v3 17/19] st/nine: Queries: allow app to call GetData without Issuing first

2014-11-24 Thread David Heidelberg
From: Axel Davy Nine was allowing that behaviour, but was not filling the result. Cc: "10.4" Tested-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/query9.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/s

[Mesa-dev] [PATCH v3 12/19] st/nine: if query needs flush, try again get_query_result after flush

2014-11-24 Thread David Heidelberg
From: Axel Davy Cc: "10.4" Tested-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/query9.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/gallium/state_trackers/nine/query9.c b/src/gallium/state_tra

[Mesa-dev] [PATCH v3 14/19] st/nine: Use gallium caps to get if queries are supported.

2014-11-24 Thread David Heidelberg
From: Axel Davy Some queries need the driver to advertise a cap to be supported. For example r300 doesn't support them. Cc: "10.4" Tested-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c | 2 +- src/gallium/state_trackers/nine

[Mesa-dev] [PATCH v3 11/19] st/nine: remove dummy queries

2014-11-24 Thread David Heidelberg
different behaviour. This patch drops the dummy queries support and matches wine behaviour. Cc: "10.4" Reviewed-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c | 5 +- src/gallium/state_trackers/nine/query9.c | 101 +++--

[Mesa-dev] [PATCH v3 13/19] st/nine: fix formatting in query9 (cosmetic)

2014-11-24 Thread David Heidelberg
From: Axel Davy Cc: "10.4" Reviewed-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/query9.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/state_trackers/nine/query9.c b/src/gallium/state_trackers/nine/quer

[Mesa-dev] [PATCH v3 10/19] st/nine: Fix setting of the shift modifier in nine_shader

2014-11-24 Thread David Heidelberg
From: Axel Davy It is an sint_4, but it was stored in a uint_8... The code using it was acting as if it was signed. Problem found thanks to Coverity Cc: "10.4" Tested-by: David Heidelberg Reviewed-by: Ilia Mirkin Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nin

[Mesa-dev] [PATCH v3 08/19] st/nine: fix wrong variable reset

2014-11-24 Thread David Heidelberg
From: Axel Davy Error detected by Coverity (COPY_PASTE_ERROR) Cc: "10.4" Reviewed-by: Ilia Mirkin Signed-off-by: Axel Davy Signed-off-by: David Heidelberg --- src/gallium/state_trackers/nine/nine_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s

[Mesa-dev] [PATCH v3 09/19] st/nine: remove unused pipe_viewport_state::translate[3] and scale[3]

2014-11-24 Thread David Heidelberg
2efabd9f5a711a7f6cd1846630244b7814bf25b3 removed them as unused. This caused random memory overwrites (reported by Coverity). Cc: "10.4" Reviewed-by: Ilia Mirkin Reviewed-by: Marek Olšák Reviewed-by: Axel Davy Signed-off-by: David Heidelberg --- src/gallium/state_trackers/nine/ni

[Mesa-dev] [PATCH v3 07/19] st/nine: return GetAvailableTextureMem in bytes as expected (v2)

2014-11-24 Thread David Heidelberg
Signed-off-by: David Heidelberg --- src/gallium/state_trackers/nine/device9.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c index 66d5e66..d48f47d 100644 --- a/src/gallium/state_tra

[Mesa-dev] [PATCH v3 03/19] st/nine: rework the way D3DPOOL_SYSTEMMEM is handled

2014-11-24 Thread David Heidelberg
t the design required to support the feature and wasn't used. Cc: "10.4" Tested-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/basetexture9.c | 4 +- src/gallium/state_trackers/nine/cubetexture9.c | 2 +- src/gallium/state_trackers/nine/

[Mesa-dev] [PATCH v3 06/19] st/nine: Add pool check to SetTexture (v2)

2014-11-24 Thread David Heidelberg
From: Axel Davy D3DPOOL_SCRATCH is disallowed according to spec. D3DPOOL_SYSTEMMEM should be allowed but we don't handle it right for now. v2: Fixes segfault in SetTexture when unsetting the texture Cc: "10.4" Tested-by: David Heidelberg Signed-off-by: Axel Davy -

[Mesa-dev] [PATCH v3 04/19] st/nine: call DBG() at more external entry points

2014-11-24 Thread David Heidelberg
From: Stanislaw Halik Cc: "10.4" Reviewed-by: Ilia Mirkin Reviewed-by: David Heidelberg Reviewed-by: Axel Davy Signed-off-by: Stanislaw Halik --- src/gallium/state_trackers/nine/basetexture9.c | 17 src/gallium/state_trackers/nine/cubetexture9.c | 17 s

[Mesa-dev] [PATCH v3 05/19] st/nine: propertly declare constants (v2)

2014-11-24 Thread David Heidelberg
From: Axel Davy Fixes "Error : CONST[20]: Undeclared source register" when running dx9_alpha_blending_material. Also artifacts on ilo. v2: also remove unused MISC_CONST Cc: "10.4" Tested-by: David Heidelberg Reviewed-by: Ilia Mirkin Signed-off-by: Axel Davy --- src/ga

[Mesa-dev] [PATCH v3 02/19] st/nine: Rework Basetexture9 and Resource9.

2014-11-24 Thread David Heidelberg
From: Axel Davy Instead of having parts of the structures initialised by the parents, have them initialised by the children. Cc: "10.4" Tested-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/basetexture9.c | 19 +++ s

[Mesa-dev] [PATCH v3 01/19] st/nine: clean device9ex.

2014-11-24 Thread David Heidelberg
From: Axel Davy Pass ex specific parameters as arguments to device9 ctor instead of passing them by filling the structure. Cc: "10.4" Reviewed-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/adapter9.c | 2 +- src/gallium/state_trackers/nine

[Mesa-dev] [PATCH 09/11] st/nine: Rework queries

2014-11-23 Thread David Heidelberg
From: Axel Davy From this moment we should handle errors same way as Wine does. Original patch from John Ettedgui Cc: "10.4" Tested-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/query9.c | 66 +--- 1 file c

[Mesa-dev] [PATCH 10/11] st/nine: Handle queries not supported by the driver

2014-11-23 Thread David Heidelberg
From: Axel Davy Cc: "10.4" Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c | 2 +- src/gallium/state_trackers/nine/query9.c | 52 --- src/gallium/state_trackers/nine/query9.h | 2 +- 3 files changed, 42 insertions(+), 14 deletions(-) diff

[Mesa-dev] [PATCH 11/11] st/nine: return S_FALSE instead of INVALIDCALL when in building query state

2014-11-23 Thread David Heidelberg
From: Axel Davy It is the same behaviour as wine has. Cc: "10.4" Reviewed-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/query9.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/query9.c b/s

[Mesa-dev] [PATCH 07/11] st/nine: remove unused pipe_viewport_state::translate[3] and scale[3]

2014-11-23 Thread David Heidelberg
2efabd9f5a711a7f6cd1846630244b7814bf25b3 removed them as unused. This caused random memory overwrites (reported by Coverity). Cc: "10.4" Reviewed-by: Marek Olšák Reviewed-by: Axel Davy Signed-off-by: David Heidelberg --- src/gallium/state_trackers/nine/nine_state.c | 2 -- 1 file

[Mesa-dev] [PATCH 06/11] st/nine: fix wrong variable reset

2014-11-23 Thread David Heidelberg
From: Axel Davy Error detected by Coverity (COPY_PAST_ERROR) Cc: "10.4" Signed-off-by: Axel Davy Signed-off-by: David Heidelberg --- src/gallium/state_trackers/nine/nine_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/ni

[Mesa-dev] [PATCH 08/11] st/nine: Fix setting of the shift modifier in nine_shader

2014-11-23 Thread David Heidelberg
From: Axel Davy It is an sint_4, but it was stored in a uint_8... The code using it was acting as if it was signed. Problem found thanks to Coverity Cc: "10.4" Tested-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_shader.c | 6 -- 1 fi

[Mesa-dev] [PATCH 01/11] st/nine: Refactor Resource9 BaseTexture9 Surface9 and Texture9 initialization

2014-11-23 Thread David Heidelberg
, preventing Half-Life 2 Lost Coast from working properly, is to remove the data field from Resource9, put it in Surface9, which was the only user, and add flag to Surface9 to know if it has created the data or not. Surface9 dtor frees the data only if it created it. Cc: "10.4" Tested-by: David

[Mesa-dev] [PATCH 02/11] st/nine: call DBG() at more external entry points

2014-11-23 Thread David Heidelberg
From: Stanislaw Halik Cc: "10.4" Reviewed-by: David Heidelberg Reviewed-by: Axel Davy Signed-off-by: Stanislaw Halik --- src/gallium/state_trackers/nine/basetexture9.c | 17 src/gallium/state_trackers/nine/cubetexture9.c | 17 src/gallium/state_tra

Re: [Mesa-dev] [PATCH] nine: the .pc file should not follow mesa version

2014-11-23 Thread David Heidelberg
Reviewed-by: David Heidelberg On 11/22/2014 05:23 AM, Emil Velikov wrote: The version provided by it should be the same as the one provided/handled by the module. Add the missing tiny version. Cc: Signed-off-by: Emil Velikov --- configure.ac| 2 ++ src

[Mesa-dev] [PATCH 04/11] st/nine: Add pool check to SetTexture (v2)

2014-11-23 Thread David Heidelberg
From: Axel Davy D3DPOOL_SCRATCH is disallowed according to spec. D3DPOOL_SYSTEMMEM should be allowed but we don't handle it right for now. v2: Fixes segfault in SetTexture when unsetting the texture Cc: "10.4" Tested-by: David Heidelberg Signed-off-by: Axel Davy -

[Mesa-dev] [PATCH 05/11] st/nine: return GetAvailableTextureMem in bytes as expected (v2)

2014-11-23 Thread David Heidelberg
PIPE_CAP_VIDEO_MEMORY returns the amount of video memory in megabytes, so need to converted it to bytes. Fixed Warframe memory detection. v2: also prepare for cards with more than 4GB memory Cc: "10.4" Tested-by: Yaroslav Andrusyak Reviewed-by: Axel Davy Signed-off-by: David

[Mesa-dev] [PATCH 03/11] st/nine: propertly declare constants

2014-11-23 Thread David Heidelberg
From: Axel Davy Fixes "Error : CONST[20]: Undeclared source register" when running dx9_alpha_blending_material. Also artifacts on ilo. Cc: "10.4" Tested-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_ff.c | 4 ++-- 1 file changed

Re: [Mesa-dev] [PATCH 4/4] nine: call DBG() at more external entry points

2014-11-21 Thread David Heidelberg
Sorry, for now please without this patch. This one needs " nine: Refactor Resource9 BaseTexture9 Surface9 and Texture9 initialization", which isn't part of batch. Thanks, David. On 11/22/2014 04:14 AM, David Heidelberg wrote: From: Stanislaw Halik Cc: "10.4" Revi

[Mesa-dev] [PATCH 3/4] nine: handle D3DISSUE_END without previous D3DISSUE_BEGIN

2014-11-21 Thread David Heidelberg
From: John Ettedgui This patch fixes black screen with games based on the Unreal Engine 3. It was tested that it fixed the issue in Tera Online, Borderlands 2 and Homefront. Cc: "10.4" Reviewed-by: Axel Davy Reviewed-by: David Heidelberg Signed-off-by: John Ettedgui --- s

[Mesa-dev] [PATCH 2/4] nine: Add pool check to SetTexture (v2)

2014-11-21 Thread David Heidelberg
From: Axel Davy D3DPOOL_SCRATCH is disallowed according to spec. D3DPOOL_SYSTEMMEM should be allowed but we don't handle it right for now. v2: Fixes segfault in SetTexture when unsetting the texture Cc: "10.4" Tested-by: David Heidelberg Signed-off-by: Axel Davy -

[Mesa-dev] [PATCH 4/4] nine: call DBG() at more external entry points

2014-11-21 Thread David Heidelberg
From: Stanislaw Halik Cc: "10.4" Reviewed-by: David Heidelberg Reviewed-by: Axel Davy Signed-off-by: Stanislaw Halik --- src/gallium/state_trackers/nine/basetexture9.c | 17 src/gallium/state_trackers/nine/cubetexture9.c | 17 src/gallium/state_tra

[Mesa-dev] [PATCH 1/4] nine: propertly declare constants

2014-11-21 Thread David Heidelberg
From: Axel Davy Fixes "Error : CONST[20]: Undeclared source register" when running dx9_alpha_blending_material. Also artifacts on ilo. Cc: "10.4" Tested-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_ff.c | 4 ++-- 1 file changed

Re: [Mesa-dev] [PATCH 1/3] nine: Don't use the otherwise-dead SFL opcode in an unreachable path.

2014-11-21 Thread David Heidelberg
Reviewed-by: David Heidelberg for the series. David ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] Removing unused opcodes (TGSI, Mesa IR)

2014-11-19 Thread David Heidelberg
> The patch attached should do it. just small nitpick, please drop "/* for radeons */" comment from DP2ADD, thanks Reviewed-by: David Heidelberg ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mai

[Mesa-dev] feature request for mesamatrix.net

2014-11-16 Thread David Odin
isn't implemented yet and if it looks difficult, etc. Best Regards, David Odin -- ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 2/2] Revert "mesa: Wrap SSE4.1 code in #ifdef __SSE4_1__."

2014-11-15 Thread David Heidelberg
Apply for both patch 1/2 and 2/2. Host: chroot on AMD A3870K Target: AMD TK-55 (compiled with -mno-sse41) I tested chroot cross-compilation and it passed correctly. Tested-by: David Heidelberg On 11/15/2014 06:04 PM, Emil Velikov wrote: This reverts commit

Re: [Mesa-dev] [PATCH v3 0/9] Gallium Nine

2014-11-14 Thread David Heidelberg
On 11/14/2014 04:31 PM, Henri Verbeet wrote: On 14 November 2014 16:21, Ilia Mirkin wrote: To the best of my knowledge, wine has no intent on merging anything related to nine/st. That's a bit broader than I'd put it, but yes, in it's current form this is not something we'd merge. At this mome

Re: [Mesa-dev] [PATCH v3 0/9] Gallium Nine

2014-11-14 Thread David Heidelberg
. Maintaining it out-of tree make us bisecting more difficult, so it would be really blessing to have it in upstream repository. David On 11/14/2014 04:21 PM, Ilia Mirkin wrote: On Fri, Nov 14, 2014 at 9:14 AM, Emil Velikov wrote: On 02/11/14 18:27, David Heidelberg wrote: Hello everyone! First

[Mesa-dev] [PATCH 15/15] draw: allow LLVM use on non-SSE2 X86 cpus

2014-11-03 Thread David Heidelberg
This patch remove workaround related to LLVM 2.7 bug. Original bug has been closed as fixed in 2011. At this moment gallium requires LLVM 3.3 (2013). Original LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=6960 Signed-off-by: David Heidelberg --- src/gallium/auxiliary/draw/draw_context.c

Re: [Mesa-dev] [PATCH] draw: allow LLVM use on non-SSE2 X86 cpus

2014-11-03 Thread david
On 2014-11-03 11:51, Roland Scheidegger wrote: Am 01.11.2014 um 22:19 schrieb David Heidelberg: This patch remove workaround related to LLVM < 3.2 bug. Original bug has been closed as fixed in 2011. At this moment gallium requires LLVM 3.3 (2013). LLVM has been tested without SSE2 support

[Mesa-dev] [PATCH v3 9/9] nine: Implement threadpool

2014-11-02 Thread David Heidelberg
buffers to the server only when rendering has finished. Since waiting the rendering has finished in the main thread has a performance impact, this patch uses an additional thread to offload the wait and the sending of the buffers to the server. Signed-off-by: Axel Davy Signed-off-by: David

[Mesa-dev] [PATCH v3 8/9] nine: Add drirc options (v2)

2014-11-02 Thread David Heidelberg
Implements vblank_mode and throttling, which allows us change default ratio between framerate and input lag. Signed-off-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/adapter9.h | 1 + src/gallium/state_trackers/nine/swapchain9.c| 5 src

[Mesa-dev] [PATCH v3 7/9] nine: Add state tracker nine for Direct3D9 (v2)

2014-11-02 Thread David Heidelberg
This patch is too big for ML, please see it in https://github.com/iXit/Mesa-3D/commits/for-upstream-3 . ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH v3 5/9] gallium/auxiliary: add contained and rect checks (v3)

2014-11-02 Thread David Heidelberg
v3: thanks to Brian, improved coding style, also glennk helped spot few things (unsigned -> int, two constify) Signed-off-by: David Heidelberg --- src/gallium/auxiliary/util/u_box.h | 230 src/gallium/auxiliary/util/u_rect.h | 28 + 2 files chan

  1   2   >