Re: [Mesa-dev] RFC: help on llvmpipe

2013-01-14 Thread Adhemerval Zanella
On 01/11/2013 01:05 PM, Michel Dänzer wrote: > On Fre, 2013-01-11 at 11:53 -0200, Adhemerval Zanella wrote: >> I'm trying to make llvmpipe work correctly on PowerPC64. The llvm MCJIT >> backend >> works pretty well now, so now I'm focused on the llvmpipe code. I al

[Mesa-dev] RFC: help on llvmpipe

2013-01-11 Thread Adhemerval Zanella
Hi all, I'm trying to make llvmpipe work correctly on PowerPC64. The llvm MCJIT backend works pretty well now, so now I'm focused on the llvmpipe code. I already sent a few patches to address the existing testcases (lp_test_arit, lp_test_blend, lp_test_conv, lp_test_format, lp_test_printf). Howe

Re: [Mesa-dev] [PATCH 0/8] llvmpipe: Fixes for PowerPC/big-endian machines

2012-11-29 Thread Adhemerval Zanella
On 11/29/2012 09:58 AM, Jose Fonseca wrote: > Commited. Thanks. > > > Is it possible to cross build to PowerPC and run a PowerPC executable in some > emulator? If it is an easy thing to do, then I'd like to automate > cross-building and running llvmpipe unit tests on PowerPC emulator. Otherwise

Re: [Mesa-dev] [PATCH 0/8] llvmpipe: Fixes for PowerPC/big-endian machines

2012-11-28 Thread Adhemerval Zanella
On 11/28/2012 10:44 AM, Adhemerval Zanella wrote: > On 11/27/2012 04:28 PM, Jose Fonseca wrote: >> - Original Message - >>> Hi all, >>> >>> This set of patches fixes all the llvmpipe lp_test_* for PowerPC. The >>> first five >>> add Al

Re: [Mesa-dev] [PATCH 5/8] PowerPC: clear Altivec NJ bit

2012-11-28 Thread Adhemerval Zanella
On 11/22/2012 07:33 PM, Roland Scheidegger wrote: > Am 22.11.2012 21:34, schrieb Adhemerval Zanella: >> Mostly PowerPC system sets the Altivec NJ bit to 1 so denormal number >> are handled as 0. Initially it was a performance configuration, since >> denormal handling tended

Re: [Mesa-dev] [PATCH 0/8] llvmpipe: Fixes for PowerPC/big-endian machines

2012-11-28 Thread Adhemerval Zanella
On 11/27/2012 04:28 PM, Jose Fonseca wrote: > > - Original Message - >> Hi all, >> >> This set of patches fixes all the llvmpipe lp_test_* for PowerPC. The >> first five >> add Altivec intrinsics that fixes all arith testcases, while the >> remaining one >> deals mainly with big-endian memo

Re: [Mesa-dev] [PATCH 8/8] RFC: llvmpipe: Fix format manipulation for big-endian

2012-11-28 Thread Adhemerval Zanella
On 11/22/2012 07:37 PM, Roland Scheidegger wrote: > Am 22.11.2012 21:35, schrieb Adhemerval Zanella: >> This patch fixes various format manipulation for big-endian >> architectures. Basically it works on two fronts: 1) by adjusting >> some algorithms that do shifts/mask on vec

Re: [Mesa-dev] [PATCH 0/8] llvmpipe: Fixes for PowerPC/big-endian machines

2012-11-28 Thread Adhemerval Zanella
On 11/22/2012 07:38 PM, Roland Scheidegger wrote: > Am 22.11.2012 21:33, schrieb Adhemerval Zanella: >> Hi all, >> >> This set of patches fixes all the llvmpipe lp_test_* for PowerPC. The first >> five >> add Altivec intrinsics that fixes all arith testcases, whi

[Mesa-dev] [PATCH 8/8] RFC: llvmpipe: Fix format manipulation for big-endian

2012-11-22 Thread Adhemerval Zanella
ad vectors is naive (it loads element per element). I plan work on this to use a better approach to load and permute the vector instead. Any tips, advices, comments? >From 55f3cd6678f92766a6ad227427c4f7de82abfeaf Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Thu, 22 Nov 2012 1

[Mesa-dev] [PATCH 7/8] RFC: llvmpipe: Add byte-swap construct calls

2012-11-22 Thread Adhemerval Zanella
vector by byte-swapping each element on the source vector. Right now I'm aiming for correctness, but I plan to create a better approach by using vector shuffles with a correct mask. Any tips, advices, comments? >From 1ed8ae50252b9dfc8611a305618bab4d7a003596 Mon Sep 17 00:00:00 2001 From: Ad

[Mesa-dev] [PATCH 6/8] llvmpipe: Fix vector constant for shuffle

2012-11-22 Thread Adhemerval Zanella
This patch fixes the vector constant generation used for vector shuffle for big-endian machines. Any tips, advices, comments? >From 52d1751199731bc9693f785fdec985546d0a9537 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Thu, 22 Nov 2012 13:42:45 -0600 Subject: [PATCH 6/8] llvmp

[Mesa-dev] [PATCH 5/8] PowerPC: clear Altivec NJ bit

2012-11-22 Thread Adhemerval Zanella
rom d9e406ec33a45d41cdc096309099b3d3ac24dc3c Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Thu, 22 Nov 2012 11:55:35 -0600 Subject: [PATCH 5/8] PowerPC: clear Altivec NJ bit This patch enforces the clear of NJ bit in VSCR Altivec register so denormal numbers are handles as expected by IEEE standa

[Mesa-dev] [PATCH 4/8] PowerPC: Altivec floating-point rounding

2012-11-22 Thread Adhemerval Zanella
This patch adds Altivec intrinsics for float vector types. It changes the SSE specific definitions to a platform neutral and adds the calls to Altivec intrinsic builder. Any tips, advices, comments? >From 78e1b12fafe353ab97bdcdbc911b71f24ff239bf Mon Sep 17 00:00:00 2001 From: Adhemer

[Mesa-dev] [PATCH 3/8] PowerPC: Altivec vector add/sub intrisics

2012-11-22 Thread Adhemerval Zanella
This patch is just a repost of <http://lists.freedesktop.org/archives/mesa-dev/2012-November/029567.html>http://lists.freedesktop.org/archives/mesa-dev/2012-November/029570.html included for organization. >From 9cb39b18eefe44f5d62c50ac70bf705d1bb6e9fe Mon Sep 17 00:00:00 2001 From: A

[Mesa-dev] [PATCH 2/8] PowerPC: Altivec vector max/min intrisics

2012-11-22 Thread Adhemerval Zanella
This patch is just a repost of <http://lists.freedesktop.org/archives/mesa-dev/2012-November/029566.html>http://lists.freedesktop.org/archives/mesa-dev/2012-November/029567.html included for organization. >From 8fc8b040607702d00e0b4927ea372c6597b49251 Mon Sep 17 00:00:00 2001 From: A

[Mesa-dev] [PATCH 1/8] PowerPC: Altivec pack/unpack intrisics

2012-11-22 Thread Adhemerval Zanella
This patch is just a repost of http://lists.freedesktop.org/archives/mesa-dev/2012-November/029566.html included for organization. >From 88fd3f85a4454283cda172162ad658ae70e73c01 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Thu, 22 Nov 2012 10:54:45 -0600 Subject: [PATCH 1/8] Powe

[Mesa-dev] [PATCH 0/8] llvmpipe: Fixes for PowerPC/big-endian machines

2012-11-22 Thread Adhemerval Zanella
Hi all, This set of patches fixes all the llvmpipe lp_test_* for PowerPC. The first five add Altivec intrinsics that fixes all arith testcases, while the remaining one deals mainly with big-endian memory loads and shift/mask algorithms. The first three are repost of previous patches that I includ

Re: [Mesa-dev] RFC: PowerPC: Add Altivec pack/unpack intrisics

2012-11-06 Thread Adhemerval Zanella
On 11/05/2012 06:19 PM, Roland Scheidegger wrote: > Am 05.11.2012 18:45, schrieb Adhemerval Zanella: >> Hi all, >> >> This patch adds PPC Altivec support for pack/unpack operations using Altivec >> supported vector type (8xi8, 16xi16, 4xi32, 4xf32). I focused my

[Mesa-dev] PowerPC: Add Altivec vector add/sub intrisics

2012-11-05 Thread Adhemerval Zanella
, resulting in bogus values for vector shifting. The patch corrects the lp_test_blend testcase. Any tips, advices, comments? >From d04d123ff7e9cdf1dad0261f6ce9c288d0e80af8 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Mon, 5 Nov 2012 11:55:05 -0600 Subject: [PATCH 3/3] PowerPC:

Re: [Mesa-dev] RFC: PowerPC: Add Altivec vector max/min intrisics

2012-11-05 Thread Adhemerval Zanella
On 11/05/2012 03:54 PM, Adhemerval Zanella wrote: > This patch adds the PPC Altivec instrics max/min instruction for > supported Altivec vector types (16xi8, 8xi16, 4xi32, 4xf32). > > I focused my testing on the lp_test_conv, which on default behavior > expands the max/min

[Mesa-dev] RFC: PowerPC: Add Altivec vector max/min intrisics

2012-11-05 Thread Adhemerval Zanella
This patch adds the PPC Altivec instrics max/min instruction for supported Altivec vector types (16xi8, 8xi16, 4xi32, 4xf32). I focused my testing on the lp_test_conv, which on default behavior expands the max/min on vectors. The lp_test_conv JIT generation works as intended, generating vminXXX in

[Mesa-dev] RFC: PowerPC: Add Altivec pack/unpack intrisics

2012-11-05 Thread Adhemerval Zanella
. I wasn't sure which code styling to use, so I tried to guess based on the current style of the file. Any advices, tips, suggestions? >From c1994479a2fad9b869fd862d5020bb867911ea1b Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Mon, 5 Nov 2012 11:33:42 -0600 Subject: [PATCH] Powe