[Mesa3d-dev] PATCH[0/1]: OpenCL: create and implement stub context methods

2009-12-09 Thread Igor Oliveira
These patchs implements and implements stub context methods in OpenCL. Almost all operation in OpenCL use a context. The patch implements the gallium3d context and implements the methods below: -clCreateContext -clCreateContexFromType -clRetainContext -clReleaseContext ps: probably i show break

[Mesa3d-dev] PATCH[1/1]: OpenCL: create and implement stub context methods

2009-12-09 Thread Igor Oliveira
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b8ff200..c29f7c6 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -16,6 +16,7 @@ set(CLOVER_SRC_FILES api/api_memory.cpp api/api_profiling.cpp api/api_sampler.cpp api/api_gl.cpp core/device.cpp +

Re: [Mesa3d-dev] PATCH[0/1]: OpenCL: create and implement stub context methods

2009-12-09 Thread Igor Oliveira
2009 13:29:05 Igor Oliveira wrote: These patchs implements and implements stub context methods in OpenCL. Almost all operation in OpenCL use a context. The patch implements the gallium3d context and implements the methods  below: -clCreateContext -clCreateContexFromType -clRetainContext

[Mesa3d-dev] PATCH:OpenCL: create tests

2009-12-28 Thread Igor Oliveira
Hi guys, There are two patches the first one(cmake_test.patch) create the cmake tests infrastructure and the second one(files_test.patch) create the device and context tests. I am using check unit tests[1] because it is simple and it is used in many projects. The tests already found some

[Mesa3d-dev] [PATCH] [OpenCL] fix device bugs found by unit tests

2009-12-30 Thread Igor Oliveira
This patch fix some bugs found by unit tests like passing a wrong device type all the devices(gpu, cpu and accelarator) was being created, ignore paramValue if it is NULL and return invalid_value if paramValueSize != paramValueSizeReturn . ps: the patch is in annex too. diff --git

[Mesa3d-dev] [PATCH] fix missing semantic name in tgsi_text.c

2010-01-01 Thread Igor Oliveira
Hi, i found a tgsi bug running vega state tracker. The bug happens because in tgsi_text.c line 991: for (i = 0; i TGSI_SEMANTIC_COUNT; i++) TGSI_SEMANTIC_COUNT is bigger than semantic_name declared in tgsi_text.c: 936 static const char *semantic_names[TGSI_SEMANTIC_COUNT] = 937 { 938

Re: [Mesa3d-dev] [PATCH] [OpenCL] fix device bugs found by unit tests

2010-01-04 Thread Igor Oliveira
Hi, On Mon, Jan 4, 2010 at 10:27 AM, Zack Rusin za...@vmware.com wrote: On Wednesday 30 December 2009 09:07:48 Igor Oliveira wrote: This patch fix some bugs found by unit tests like passing a wrong device type all the devices(gpu, cpu and accelarator) was being created, ignore paramValue

[Mesa3d-dev] [PATH]OpenCL: fix segfault in context and make tests work

2010-01-05 Thread Igor Oliveira
Hi, The fix patch changes cl_uint to cl_device_type in Device class, it fix some tests errors and the second one fix a segfault in context creation and implement some errors messages. Igor From 6ea02fdfe3e69bafcfa04e693dfd2469b3b76386 Mon Sep 17 00:00:00 2001 From: Igor Oliveira igor.olive

[Mesa3d-dev] [RFC] add support to double opcodes

2010-01-06 Thread Igor Oliveira
Hi, the patches add support to double opcodes in gallium/tgsi. It just implement some opcodes i like to know if someone has suggestion about the patches. Igor From e856e2aa3b801fc6f386a88df646a396c27d8ee8 Mon Sep 17 00:00:00 2001 From: Igor Oliveira igor.olive...@openbossa.org Date: Wed, 6 Jan

Re: [Mesa3d-dev] [RFC] add support to double opcodes

2010-01-07 Thread Igor Oliveira
like: union tgsi_double { float lsb; float msb; double reg; }; On Wed, Jan 6, 2010 at 7:56 PM, Zack Rusin za...@vmware.com wrote: On Wednesday 06 January 2010 14:56:35 Igor Oliveira wrote: Hi, the patches add support to double opcodes in gallium/tgsi. It just implement some

Re: [Mesa3d-dev] [RFC] add support to double opcodes

2010-01-07 Thread Igor Oliveira
*/ #define TGSI_SAT_ZERO_ONE1 /* clamp to [0,1] */ On Wed, Jan 6, 2010 at 7:56 PM, Zack Rusin za...@vmware.com wrote: On Wednesday 06 January 2010 14:56:35 Igor Oliveira wrote: Hi, the patches add support to double opcodes in gallium/tgsi. It just implement some opcodes i like

Re: [Mesa3d-dev] [RFC] add support to double opcodes

2010-01-07 Thread Igor Oliveira
Hi, We could use the same idea to create int64 opcodes. and by the way would be created a branch to gallium double opcodes? Igor On Thu, Jan 7, 2010 at 11:23 AM, Zack Rusin za...@vmware.com wrote: On Thursday 07 January 2010 09:11:11 michal wrote: Zack, 1. Do I understand correctly that

[Mesa3d-dev] [PATCH] add double opcodes to tgsi

2010-01-11 Thread Igor Oliveira
being implemented(i will send the code soon), they are: dfrac, dfracexp, dldexp and convert between float and double. Igor From 4eebdbbd2822157f063a84b3dcb425ddbab84104 Mon Sep 17 00:00:00 2001 From: Igor Oliveira igor.olive...@openbossa.org Date: Mon, 11 Jan 2010 09:31:27 -0400 Subject: [PATCH 1/2

Re: [Mesa3d-dev] [PATCH] add double opcodes to tgsi

2010-01-11 Thread Igor Oliveira
Right, Doing it. On Mon, Jan 11, 2010 at 10:15 AM, Keith Whitwell kei...@vmware.com wrote: On Mon, 2010-01-11 at 05:37 -0800, Igor Oliveira wrote: These patches add support to double opcodes as discussed in mail list. The opcodes create are: movd, ddiv, dadd, dseq, dmax, dmin, dmul, dmuladd

Re: [Mesa3d-dev] [PATCH] add double opcodes to tgsi

2010-01-11 Thread Igor Oliveira
Ok Igor On Mon, Jan 11, 2010 at 10:37 AM, Keith Whitwell kei...@vmware.com wrote: On Mon, 2010-01-11 at 05:37 -0800, Igor Oliveira wrote: +OP13(DMULADD) For consistency with the existing opcodes, would it be better to have DMAD here? Keith

Re: [Mesa3d-dev] [PATCH] add double opcodes to tgsi

2010-01-11 Thread Igor Oliveira
Hello, On Mon, Jan 11, 2010 at 1:54 PM, michal mic...@vmware.com wrote: Igor Oliveira wrote on 2010-01-11 14:37: These patches add support to double opcodes as discussed in mail list. The opcodes create are: movd, ddiv, dadd, dseq, dmax, dmin, dmul, dmuladd, drcp and dslt. They are used

[Mesa3d-dev] [PATH] Add double opcodes to TGSI Revision 2

2010-01-12 Thread Igor Oliveira
the double opcode branch i can move the opcode codes to use the exec_double_binary/unary Igor From 83f895a235e76d8d556411fd0154650a2598acd0 Mon Sep 17 00:00:00 2001 From: Igor Oliveira igor.olive...@openbossa.org Date: Tue, 12 Jan 2010 07:40:50 -0400 Subject: [PATCH 1/3] tgsi: add double opcodes

[Mesa3d-dev] [PATCH] Implement double opcodes: ddiv, dmul, dmax, dmin, dslt, dsge, dseq, drcp, dqsrt and dmad

2010-01-18 Thread Igor Oliveira
From 0762c16db13543aa79c77c1c8ebbcfdc581fc8b1 Mon Sep 17 00:00:00 2001 From: Igor Oliveira igor.olive...@openbossa.org Date: Mon, 18 Jan 2010 13:54:19 -0400 Subject: [PATCH 1/6] gallium: add double opcodes ddiv, dmul, dmax, dmin, dslt, dsge, dseq, drcp and dqsrt --- src/gallium/include/pipe

Re: [Mesa3d-dev] [PATCH] Implement double opcodes: ddiv, dmul, dmax, dmin, dslt, dsge, dseq, drcp, dqsrt and dmad

2010-01-19 Thread Igor Oliveira
cool! i saw that i lost a file in commit(tgsi_info.c and p_shader_tokens.h) . But look likes that you fix it in branch. Thanks! Igor On Tue, Jan 19, 2010 at 8:34 AM, michal mic...@vmware.com wrote: Igor Oliveira wrote on 2010-01-18 19:55: The patches implement gallium opcodes ddiv, dmul, dmax

[Mesa3d-dev] [PATCH] add dfrac, dfracexp, dldexp opcodes to gallium

2010-01-19 Thread Igor Oliveira
we can see it working. Igor ps.: the next patch would be adding the opcodes in documentation file. From c7731a40ab136fd98848f9155f9ce5ae3436 Mon Sep 17 00:00:00 2001 From: Igor Oliveira igor.olive...@openbossa.org Date: Tue, 19 Jan 2010 17:01:50 -0400 Subject: [PATCH 1/5] gallium: add dfrac

Re: [Mesa3d-dev] [PATCH] add dfrac, dfracexp, dldexp opcodes to gallium

2010-01-20 Thread Igor Oliveira
(src-d[0]); +   dst-d[3] = src-d[3] - floor(src-d[0]) Igor, Shouldn't the second line have floor(src-d[1]), and so on? From c7731a40ab136fd98848f9155f9ce5ae3436 Mon Sep 17 00:00:00 2001 From: Igor Oliveira igor.olive...@openbossa.org Date: Tue, 19 Jan 2010 17:01:50 -0400 Subject: [PATCH 1/6

[Mesa3d-dev] [PATCH] egl: check if driver_name is null

2010-01-24 Thread Igor Oliveira
); } x11_screen_destroy(xscr); -- 1.6.3.3 From 7ed634c927dc388ae2475766edf48b9ca88fb07f Mon Sep 17 00:00:00 2001 From: Igor Oliveira igor.olive...@openbossa.org Date: Sun, 24 Jan 2010 12:26:31 -0400 Subject: [PATCH] egl: check if driver_name is null --- src/gallium/state_trackers/egl/x11

Re: [Mesa3d-dev] [PATCH] softpipe: Fix softpipe_reset_sampler_varients, check if the sampler has a texture != NULL. It fixes the bug 25863

2010-01-25 Thread Igor Oliveira
] || !textures[1]) { samplers[1] = samplers[0]; -- 1.6.3.3 On Mon, Jan 25, 2010 at 7:41 AM, José Fonseca jfons...@vmware.com wrote: On Sun, 2010-01-24 at 18:36 -0800, Igor Oliveira wrote: The patch fixes the bug 25863. The bug happens when i use blend types like multiply, screen, dark in vega

[Mesa3d-dev] Vega advanced blending

2010-01-25 Thread Igor Oliveira
Hello, This is just a report about the work i am doing. 2 days ago i began to study the vega state tracker to understand better and help a bit since there i already fix some bugs. So right now i am implementing the advanced blending extension[1]. This extension include many blending methods

Re: [Mesa3d-dev] TGSI build and sse2 removal

2010-01-25 Thread Igor Oliveira
Hi michal, you could me maintain informed about that changes? i am creating my environment to try to create tgsi neon optimizations. I am using beagleboard + Angstrom distribution in my environment. And i thinking something about dsp too. Igor On Mon, Jan 25, 2010 at 1:02 PM, michal

Re: [Mesa3d-dev] Vega advanced blending

2010-01-25 Thread Igor Oliveira
Hello On Mon, Jan 25, 2010 at 5:51 PM, Zack Rusin za...@vmware.com wrote: On Monday 25 January 2010 16:38:46 Igor Oliveira wrote: Hello, This is just a report about the work i am doing. 2 days ago i began to study the vega state tracker to understand better and help a bit since there i

[Mesa3d-dev] [PATCH] docs: add documentation to double opcodes

2010-01-25 Thread Igor Oliveira
Hello this patch applies in double-opcode-branch. It adds documentation to double opcodes. Igor From 135fd9c851e9b50149508a3e7c04203623cc297b Mon Sep 17 00:00:00 2001 From: Igor Oliveira igor.olive...@openbossa.org Date: Mon, 25 Jan 2010 19:23:04 -0400 Subject: [PATCH] docs: add documentation

[Mesa3d-dev] [PATCH] switch shaders assembly TGSI code by tgsi_ureg

2010-02-01 Thread Igor Oliveira
Hello, Theses patchs switch all shaders code implemeted using TGSI assembly by tgsi_ureg. Igor From 6ff667cff0b3d6460a2bb0d6845348b6a2c6e6e2 Mon Sep 17 00:00:00 2001 From: Igor Oliveira igor.olive...@openbossa.org Date: Mon, 1 Feb 2010 11:11:36 -0400 Subject: [PATCH 1/2] vega: change tgsi asm

Re: [Mesa3d-dev] [PATCH] switch shaders assembly TGSI code by tgsi_ureg

2010-02-01 Thread Igor Oliveira
Hi again, Third version: removing debug messages Igor On Mon, Feb 1, 2010 at 10:08 PM, Igor Oliveira igor.olive...@openbossa.org wrote: Hi, I am resenting the patches, i fixed some bugs in ureg functions and did some clean up in shaders cache code. i tested it with all progs/openvg files

Re: [Mesa3d-dev] [PATCH] switch shaders assembly TGSI code by tgsi_ureg

2010-02-01 Thread Igor Oliveira
Hi, I am resenting the patches, i fixed some bugs in ureg functions and did some clean up in shaders cache code. i tested it with all progs/openvg files. Igor On Mon, Feb 1, 2010 at 1:02 PM, Zack Rusin za...@vmware.com wrote: On Monday 01 February 2010 10:19:53 Igor Oliveira wrote: Hello

[Mesa3d-dev] [PATCH] vega st: fix missing texture in mask when setup samplers

2010-02-03 Thread Igor Oliveira
This patch fix segfaults in mask.cpp and mask4.cpp binding a missing texture in mask bind samplers. Igor From a8ceac97c316abc56b31b6cadd826eae8f3bcbe8 Mon Sep 17 00:00:00 2001 From: Igor Oliveira igor.olive...@openbossa.org Date: Tue, 2 Feb 2010 19:19:52 -0400 Subject: [PATCH] vega: fix missing

Re: [Mesa3d-dev] [PATCH] vega st: fix missing texture in mask when setup samplers

2010-02-03 Thread Igor Oliveira
A new version and a little improvement. Makes more sense adding the texture in paint bind samplers than mask bind samplers. Igor On Wed, Feb 3, 2010 at 6:21 AM, Igor Oliveira igor.olive...@openbossa.org wrote: This patch fix segfaults in mask.cpp and mask4.cpp binding a missing texture in mask

Re: [Mesa3d-dev] [PATCH] vega st: fix missing texture in mask when setup samplers

2010-02-03 Thread Igor Oliveira
This patch fixes problems in filter and lookup too. Igor On Wed, Feb 3, 2010 at 10:19 AM, Igor Oliveira igor.olive...@openbossa.org wrote: A new version and a little improvement. Makes more sense adding the texture in paint bind samplers than mask bind samplers. Igor On Wed, Feb 3, 2010

Re: [Mesa3d-dev] [PATCH] vega st: fix missing texture in mask when setup samplers

2010-02-03 Thread Igor Oliveira
On Wed, Feb 3, 2010 at 12:03 PM, Zack Rusin za...@vmware.com wrote: On Wednesday 03 February 2010 09:19:43 Igor Oliveira wrote: A new version and a little improvement. Makes more sense adding the texture in paint bind samplers than mask bind samplers. Igor On Wed, Feb 3, 2010 at 6:21 AM, Igor

[Mesa3d-dev] [PATCH] elg: fix wrong argument in egldriver function

2010-02-03 Thread Igor Oliveira
Hi, the patch fix a typo in _eglPreloadForEach, the loader should have as third argument loader_data(the driver name) instead of loader(the loader function). Igor From 318a82ed3016ef788a41f15b461e88034b5fe64e Mon Sep 17 00:00:00 2001 From: Igor Oliveira igor.olive...@openbossa.org Date: Wed, 3

[Mesa3d-dev] [PATCH] egl: fix implicit declaration of pipe_texture_reference adding u_inlines.h

2010-02-03 Thread Igor Oliveira
Hi, This patch fix a missing include in egl state trackers. It is a leftover from gallium-embedded merge. Igor From dcc2584c162a0963fa2044a5440b9d5514ea4c97 Mon Sep 17 00:00:00 2001 From: Igor Oliveira igor.olive...@openbossa.org Date: Wed, 3 Feb 2010 18:37:36 -0400 Subject: [PATCH] egl: fix

Re: [Mesa3d-dev] [RFC] Vega state tracker advanced blending

2010-02-12 Thread Igor Oliveira
Hi, On Fri, Feb 12, 2010 at 1:38 PM, Keith Whitwell kei...@vmware.com wrote: On Fri, 2010-02-12 at 09:34 -0800, Igor Oliveira wrote: Hello, i am starting a new branch called Vega-advance-blending. The objective of this branch is implement advanced blending krhonos specification. If anyone

[Mesa3d-dev] Gallium double opcodes

2010-09-15 Thread Igor Oliveira
Hi, I am reliving gallium double opcode branch and make some work in llvm driver. So before the tests was done using the python/st but look likes it is a little bit out dated. So i am just sending the code below for review and suggestions(i am new in llvm api), basically all the others opcodes

Re: [Mesa3d-dev] Gallium double opcodes

2010-09-17 Thread Igor Oliveira
Hi, On Thu, Sep 16, 2010 at 2:37 AM, Jose Fonseca jfons...@vmware.com wrote: Hi Igor, The overall intent is good, but this creates 4*64bit = 256 bit registers which don't exist. LLVM can split into 128bit instructions, but I found that to be buggy in some cases, and it affects our ability