Re: [Mesa-dev] [PATCH 1/2] r600g, radeonsi: query the buffer domain from the kernel for DRI2 buffers

2014-02-04 Thread Michel Dänzer
On Mit, 2014-02-05 at 00:01 +0100, Marek Olšák wrote: > From: Marek Olšák > > Better then guessing it. > > Yeah we have had this query for a long time... [...] > diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c > b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c > index 2ac060b..7c59f

Re: [Mesa-dev] [PATCH] nouveau/codegen: allow tex offsets on non-TXF instructions (e.g. TXL)

2014-02-04 Thread Ilia Mirkin
On Tue, Feb 4, 2014 at 2:58 AM, Ilia Mirkin wrote: > Signed-off-by: Ilia Mirkin > --- > > This fixes the bin/fs-textureOffset-2D piglit test on nv50. Have yet to re-run > the full piglit suite with this change in place, but it seems pretty obvious. BTW, I re-ran the gpu piglits and no regression

[Mesa-dev] [PATCH] i965: Drop VECTOR_MASK_ENABLE in Broadwell's 3DSTATE_VS packet.

2014-02-04 Thread Kenneth Graunke
We never set it on previous generations, but I had to set it in 3DSTATE_PS for correct behavior. For symmetry, I set it in 3DSTATE_VS as well, but there's no actual need to do so. Piglit works fine either way. The documentation also remarks that there should never be a need to program this. Sig

[Mesa-dev] [PATCH] i965: Fix General and Indirect Base Addresses on Broadwell.

2014-02-04 Thread Kenneth Graunke
I set the "address modify enable" bit in the wrong DWord. The first DWord is the high 16 bits of the address, while the second is the low 32-bits and enable bit. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/gen8_misc_state.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[Mesa-dev] [PATCH] i965: Implement a CS stall workaround

2014-02-04 Thread Kenneth Graunke
According to the latest documentation, any PIPE_CONTROL with the "Command Streamer Stall" bit set must also have another bit set, with five different options: - Render Target Cache Flush - Depth Cache Flush - Stall at Pixel Scoreboard - Post-Sync Operation - Depth Stall I chose "St

[Mesa-dev] [PATCH 2/2] i965: Use the new brw_load_register_mem helper for draw indirect.

2014-02-04 Thread Kenneth Graunke
This makes it work on Broadwell, too. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_draw.c | 56 1 file changed, 25 insertions(+), 31 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c in

[Mesa-dev] [PATCH 1/2] i965: Implement a brw_load_register_mem helper function.

2014-02-04 Thread Kenneth Graunke
This saves some boilerplate and hides the OUT_RELOC/OUT_RELOC64 distinction. Placing the function in intel_batchbuffer.c is rather arbitrary; there wasn't really an obvious place for it. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_context.h | 7 +++ src/mesa/driv

[Mesa-dev] [PATCH] i965: Add missing sample shading bits to Gen8's 3DSTATE_PS_EXTRA.

2014-02-04 Thread Kenneth Graunke
Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/gen8_ps_state.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/gen8_ps_state.c b/src/mesa/drivers/dri/i965/gen8_ps_state.c index b45da8f..852ba36 100644 --- a/src/mesa/driver

[Mesa-dev] [PATCH] nouveau/video: make sure that firmware is present when checking caps

2014-02-04 Thread Ilia Mirkin
Apparently some players are ill-prepared for us claiming that a decoder exists only to have creating it fail, and express this poor preparation with crashes (e.g. flash). Check that firmware is there to increase the chances of there being a high correlation between reported capabilities and ability

Re: [Mesa-dev] [PATCH 12/15] i965: Pull out layer_multiplier in intel_update_renderbuffer_wrapper

2014-02-04 Thread Kenneth Graunke
On 01/25/2014 05:00 PM, Chris Forbes wrote: > On Thu, Jan 23, 2014 at 6:58 AM, Courtney Goeltzenleuchter > wrote: >> On Tue, Jan 21, 2014 at 3:34 AM, Chris Forbes wrote: >>> >>> We're about to need this in another place. >>> >>> Signed-off-by: Chris Forbes >>> --- >>>src/mesa/driv

Re: [Mesa-dev] ARB_texture_gather support for Sandy Bridge

2014-02-04 Thread Kenneth Graunke
On 02/03/2014 01:29 AM, Chris Forbes wrote: > This series adds a bunch of workarounds to enable ARB_texture_gather > (in its more restrictive form) on Gen6 hardware. > > These are necessary because Gen6's gather4 instruction doesn't work > correctly with integer or unsigned integer formats. > > T

Re: [Mesa-dev] [PATCH 1/5] i965: Add Gen6 gather wa to sampler key

2014-02-04 Thread Kenneth Graunke
On 02/03/2014 01:29 AM, Chris Forbes wrote: > Signed-off-by: Chris Forbes > --- > src/mesa/drivers/dri/i965/brw_program.h | 11 +++ > src/mesa/drivers/dri/i965/brw_wm.c | 20 > 2 files changed, 31 insertions(+) > > diff --git a/src/mesa/drivers/dri/i965/brw_prog

Re: [Mesa-dev] [PATCH 02/10] glsl: serialize methods for IR instructions

2014-02-04 Thread Paul Berry
On 29 January 2014 01:24, Tapani Pälli wrote: > + > + > +/** > + * Serialization of exec_list, writes length of the list + > + * calls serialize_data for each instruction > + */ > +void > +serialize_list(exec_list *list, memory_writer &mem) > +{ > + uint32_t list_len = 0; > + foreach_list(nod

Re: [Mesa-dev] [PATCH 2/5] i965: Add surface format overrides for Gen6 gather

2014-02-04 Thread Kenneth Graunke
On 02/03/2014 01:29 AM, Chris Forbes wrote: > Signed-off-by: Chris Forbes > --- > src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 30 > > 1 file changed, 25 insertions(+), 5 deletions(-) > > diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c > b/src/mesa/

Re: [Mesa-dev] [PATCH 3/5] i965/fs: Emit shader w/a for Gen6 gather

2014-02-04 Thread Kenneth Graunke
On 02/03/2014 01:29 AM, Chris Forbes wrote: > Signed-off-by: Chris Forbes > --- > src/mesa/drivers/dri/i965/brw_fs.h | 1 + > src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 26 ++ > 2 files changed, 27 insertions(+) > > diff --git a/src/mesa/drivers/dri/i965/br

Re: [Mesa-dev] [PATCH 01/10] glsl: memory_writer helper class for data serialization

2014-02-04 Thread Paul Berry
On 4 February 2014 19:52, Paul Berry wrote: > Whoops, I discovered another issue: > > > On 29 January 2014 01:24, Tapani Pälli wrote: > >> Class will be used by the shader binary cache implementation. >> >> Signed-off-by: Tapani Pälli >> --- >> src/glsl/memory_writer.h | 188 >> +++

[Mesa-dev] slow depth test on Intel gen7+

2014-02-04 Thread Chia-I Wu
Hi, I am looking at performance issues for some benchmark for a while, and am able to identify three issues so far, all related to depth test. The first issue is slow 16-bit depth buffer. This is already known and is fixed for GLES contexts by commit 73bc6061f5c3b6a3bb7a8114bb2e1a. It is not fi

Re: [Mesa-dev] [PATCH] centroid affects interpolation

2014-02-04 Thread Kenneth Graunke
On 02/04/2014 05:01 AM, Kevin Rogovin wrote: > Place centroid keyword as an interpolation qualifier. > Previously was a storage qualifier. Fixes front end > to accept input of the form "centroid in type variable" No, it doesn't. Without your patch, Mesa successfully compiles the following shader:

Re: [Mesa-dev] [PATCH 01/10] glsl: memory_writer helper class for data serialization

2014-02-04 Thread Paul Berry
Whoops, I discovered another issue: On 29 January 2014 01:24, Tapani Pälli wrote: > Class will be used by the shader binary cache implementation. > > Signed-off-by: Tapani Pälli > --- > src/glsl/memory_writer.h | 188 > +++ > 1 file changed, 188 ins

Re: [Mesa-dev] [PATCH 01/10] glsl: memory_writer helper class for data serialization

2014-02-04 Thread Paul Berry
On 29 January 2014 01:24, Tapani Pälli wrote: > Class will be used by the shader binary cache implementation. > > Signed-off-by: Tapani Pälli > --- > src/glsl/memory_writer.h | 188 > +++ > 1 file changed, 188 insertions(+) > create mode 100644 src/g

Re: [Mesa-dev] [PATCH 1/3] gallivm: handle huge number of immediates

2014-02-04 Thread Zack Rusin
> > reasons. This commit adds code to skip that performance optimization > > and always use just the dynamically allocated immediates if the > > number of them is too great. > > So is there any limit on the number of immediates now? Technically not. Practically other parts of the code will max ou

Re: [Mesa-dev] [PATCH 3/3] tgsi/ureg: increase the number of immediates

2014-02-04 Thread Zack Rusin
Yes, they simply always behave as if they were accessed indirectly from our code, but llvm seems to be pretty good at moving all of those accesses to registers (aka. eliminating alloca's) if they're not actually indirectly indexed, so it all ends up pretty. z - Original Message - > Am

Re: [Mesa-dev] [PATCH 3/3] i965: Bump MaxTexMbytes from 1GB to 1.5GB.

2014-02-04 Thread Kenneth Graunke
On 02/04/2014 10:37 AM, Daniel Vetter wrote: > On Sun, Feb 02, 2014 at 03:16:45AM -0800, Kenneth Graunke wrote: >> Even with the other limits raised, TestProxyTexImage would still reject >> textures > 1GB in size. This is an artificial limit; nothing prevents >> us from having a larger texture. I

[Mesa-dev] [PATCH v3 1/8] loader: Get driver name from udev hwdb when available

2014-02-04 Thread Kristian Høgsberg
The udev hwdb is a mechanism for applying udev properties to devices at hotplug time. The hwdb text files are compiled into a binary database that lets udev efficiently look up and apply properties to devices that match a given modalias. This patch exports the mesa PCI ID tables as hwdb files and

[Mesa-dev] [PATCH v3 2/8] gallium-loader: Don't worry about PCI IDs in gallium-loader

2014-02-04 Thread Kristian Høgsberg
There's no reason to look this up in the gallium loader code now that the generic loader handles all this. This allows us to not export loader_get_pci_id_for_fd() from loader.c. Signed-off-by: Kristian Høgsberg --- src/gallium/auxiliary/pipe-loader/pipe_loader.h | 16 src/g

[Mesa-dev] [PATCH v3 4/8] loader: Factor out drmGetVersion() fallback code

2014-02-04 Thread Kristian Høgsberg
Signed-off-by: Kristian Høgsberg --- src/loader/loader.c | 44 +--- 1 file changed, 25 insertions(+), 19 deletions(-) diff --git a/src/loader/loader.c b/src/loader/loader.c index 88210df..7c38f94 100644 --- a/src/loader/loader.c +++ b/src/loader/loader.c @

[Mesa-dev] [PATCH v3 7/8] loader: Move loader_get_driver_for_fd() into the three different #ifdef cases

2014-02-04 Thread Kristian Høgsberg
Having one function that tries to accomodate the different decision trees for the three different #ifdef cases makes the logic hard to follow. Now that most of the complexity in loader_get_driver_for_fd() has been split out in helper functions, we can just move loader_get_driver_for_fd() into the

[Mesa-dev] [PATCH v3 5/8] loader: Invert __NOT_HAVE_DRM_H to __HAVE_DRM_H

2014-02-04 Thread Kristian Høgsberg
Fix up double negations for easier readability. Signed-off-by: Kristian Høgsberg --- src/loader/Makefile.am | 8 src/loader/loader.c| 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/loader/Makefile.am b/src/loader/Makefile.am index f407c78..1e0a140 10064

[Mesa-dev] [PATCH v3 8/8] loader: Switch loader to match modalias strings instead of PCI IDs

2014-02-04 Thread Kristian Høgsberg
This lets us match any device on any bus, including platform devices. Signed-off-by: Kristian Høgsberg --- include/pci_ids/pci_id_driver_map.h | 81 - src/loader/Makefile.am | 10 +++-- src/loader/Makefile.sources | 3 +- src/loader/dump-

[Mesa-dev] [PATCH v3 6/8] loader: Move debug logging to where we find the driver

2014-02-04 Thread Kristian Høgsberg
Trying to figure out where a driver name comes from by looking at whether or not chip_id is -1 isn't very roboust. Signed-off-by: Kristian Høgsberg --- src/loader/loader.c | 23 ++- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/loader/loader.c b/src/loade

[Mesa-dev] Use hwdb in loader

2014-02-04 Thread Kristian Høgsberg
This series fixes a few problems in the v2 udev hwdb patch (it broke on Kens recent #ifdef PRELIMINARY addition) and then cleans up the loader logic a bit with the goal of making the loader use modalias strings to find drivers. modalias strings are of the form : and allows the loader to look

[Mesa-dev] [PATCH v3 3/8] loader: Factor out code to map PCI ID to driver name

2014-02-04 Thread Kristian Høgsberg
Making this its own function cleans up loader_get_driver_for_fd() a bit and simplifies the control flow. Signed-off-by: Kristian Høgsberg --- src/loader/loader.c | 51 +++ 1 file changed, 27 insertions(+), 24 deletions(-) diff --git a/src/loader/l

Re: [Mesa-dev] [PATCH 3/3] tgsi/ureg: increase the number of immediates

2014-02-04 Thread Roland Scheidegger
Am 05.02.2014 01:34, schrieb Zack Rusin: > ureg_program is allocated on the heap so we can just bump the > number of immediates that it can handle. It's needed for d3d10. > > Signed-off-by: Zack Rusin > --- > src/gallium/auxiliary/tgsi/tgsi_ureg.c | 2 +- > 1 file changed, 1 insertion(+), 1 dele

Re: [Mesa-dev] [PATCH v3 7/9] glsl: add gl_InvocationID variable for ARB_gpu_shader5

2014-02-04 Thread Dave Airlie
On Wed, Feb 5, 2014 at 9:07 AM, Jordan Justen wrote: > v2: > * Make gl_InstanceID a system value typo ^^ I assume you mean gl_InvocationID. Dave. > > Signed-off-by: Jordan Justen > Reviewed-by: Paul Berry > --- > src/glsl/builtin_variables.cpp | 2 ++ > src/mesa/main/mtypes.h | 1 + >

Re: [Mesa-dev] [PATCH 2/3] gallivm: make sure analysis works with large number of immediates

2014-02-04 Thread Brian Paul
On 02/04/2014 05:34 PM, Zack Rusin wrote: We need to handle a lot more immediates and in order to do that we also switch from allocating this structure on the stack to allocating it on the heap. Signed-off-by: Zack Rusin Reviewed-by: Brian Paul _

Re: [Mesa-dev] [PATCH 1/3] gallivm: handle huge number of immediates

2014-02-04 Thread Brian Paul
On 02/04/2014 05:34 PM, Zack Rusin wrote: We only supported up to 256 immediates, which isn't enough. We had code which was allocating immediates as an allocated array, but it was always used along a statically backed array for performance "along with a" reasons. This commit adds code to ski

Re: [Mesa-dev] [PATCH 3/3] tgsi/ureg: increase the number of immediates

2014-02-04 Thread Brian Paul
On 02/04/2014 05:34 PM, Zack Rusin wrote: ureg_program is allocated on the heap so we can just bump the number of immediates that it can handle. It's needed for d3d10. Signed-off-by: Zack Rusin --- src/gallium/auxiliary/tgsi/tgsi_ureg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [Mesa-dev] [PATCH 27/30] r600g: calculate a better value for array_size

2014-02-04 Thread Dave Airlie
On Wed, Feb 5, 2014 at 12:19 AM, Grigori Goronzy wrote: > On 04.02.2014 00:53, Dave Airlie wrote: >> >> From: Dave Airlie >> >> attempt to calculate a better value for array size to avoid breaking apps. >> >> Signed-off-by: Dave Airlie >> --- >> src/gallium/drivers/r600/r600_shader.c | 2 +- >>

[Mesa-dev] [PATCH 3/3] tgsi/ureg: increase the number of immediates

2014-02-04 Thread Zack Rusin
ureg_program is allocated on the heap so we can just bump the number of immediates that it can handle. It's needed for d3d10. Signed-off-by: Zack Rusin --- src/gallium/auxiliary/tgsi/tgsi_ureg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/tgsi/tgsi_u

[Mesa-dev] [PATCH 1/3] gallivm: handle huge number of immediates

2014-02-04 Thread Zack Rusin
We only supported up to 256 immediates, which isn't enough. We had code which was allocating immediates as an allocated array, but it was always used along a statically backed array for performance reasons. This commit adds code to skip that performance optimization and always use just the dynamica

[Mesa-dev] [PATCH 2/3] gallivm: make sure analysis works with large number of immediates

2014-02-04 Thread Zack Rusin
We need to handle a lot more immediates and in order to do that we also switch from allocating this structure on the stack to allocating it on the heap. Signed-off-by: Zack Rusin --- src/gallium/auxiliary/gallivm/lp_bld_tgsi_info.c | 17 + 1 file changed, 9 insertions(+), 8 delet

Re: [Mesa-dev] [PATCH] glsl-compiler: ast: Precise locations positions.

2014-02-04 Thread Carl Worth
Sir Anthony writes: > 1. Change locations setup in glsl_parser.yy from yylloc to appropriate token > locations. > 2. Addition of two fields in ast_node location to hold end position of token. > 3. Addition of ast_node method to setup range locations (for aggregate > tokens). > 4. Fix for glcpp-l

[Mesa-dev] [PATCH 2/3] gallium: define the behavior of PIPE_USAGE_* flags properly

2014-02-04 Thread Marek Olšák
From: Marek Olšák STATIC will be removed in the following commit. --- src/gallium/docs/source/screen.rst | 18 -- src/gallium/include/pipe/p_defines.h | 13 +++-- 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/src/gallium/docs/source/screen.rst b/src/

[Mesa-dev] [PATCH 1/3] gallium: remove PIPE_RESOURCE_FLAG_GEN_MIPS

2014-02-04 Thread Marek Olšák
From: Marek Olšák Unused. --- src/gallium/include/pipe/p_defines.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h index 02f507c..52c12df 100644 --- a/src/gallium/include/pipe/p_defines.h +++ b/src/gallium/include/pi

[Mesa-dev] [Bug 72895] Missing trees in flightgear 2.12.1 with r600 driver and mesa 10.0.1

2014-02-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=72895 --- Comment #10 from Barto --- (In reply to comment #9) > I believe this is a bug in mesa core, not in a specific driver. > > I haven't been able to isolate the code that renders the trees (there are no > trees visible anywhere near the airport

[Mesa-dev] [PATCH v3 8/9] i965: support gl_InvocationID for gen7

2014-02-04 Thread Jordan Justen
v2: * Make gl_InstanceID a system value v3: * Properly shift from R0.1 into DST.4 by adding GS_OPCODE_GET_INSTANCE_ID Signed-off-by: Jordan Justen --- src/mesa/drivers/dri/i965/brw_defines.h | 12 src/mesa/drivers/dri/i965/brw_shader.cpp | 2 ++ src/mesa/dr

[Mesa-dev] [PATCH v3 7/9] glsl: add gl_InvocationID variable for ARB_gpu_shader5

2014-02-04 Thread Jordan Justen
v2: * Make gl_InstanceID a system value Signed-off-by: Jordan Justen Reviewed-by: Paul Berry --- src/glsl/builtin_variables.cpp | 2 ++ src/mesa/main/mtypes.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/glsl/builtin_variables.cpp b/src/glsl/builtin_variables.cpp index d6b

[Mesa-dev] [PATCH v3 4/9] glsl/linker: produce gl_shader_program Geom.Invocations

2014-02-04 Thread Jordan Justen
Grab the parsed invocation count, check for consistency during linking, and finally save the result in gl_shader_program Geom.Invocations. Signed-off-by: Jordan Justen Reviewed-by: Paul Berry --- src/glsl/glsl_parser_extras.cpp | 4 src/glsl/linker.cpp | 18 ++

[Mesa-dev] [PATCH v3 9/9] i965: support instanced GS on gen7

2014-02-04 Thread Jordan Justen
v3: * Properly prevent dual object mode execution when the invocation count > 1 Signed-off-by: Jordan Justen Reviewed-by: Paul Berry --- src/mesa/drivers/dri/i965/brw_context.h | 2 ++ src/mesa/drivers/dri/i965/brw_defines.h | 1 + src/mesa/drivers/dri/i965/brw_vec4_gs.c

[Mesa-dev] [PATCH v3 3/9] glsl: parse invocations layout qualifier for ARB_gpu_shader5

2014-02-04 Thread Jordan Justen
_mesa_glsl_parse_state in_qualifier->invocations will store the invocations count. v3: * Use in_qualifier to allow the primitive to be specied separately from the invocations count (merge_qualifiers) Signed-off-by: Jordan Justen --- src/glsl/ast.h | 8 src/glsl/ast_type.c

[Mesa-dev] [PATCH v3 2/9] glsl: Generate error for invalid input layout declarations

2014-02-04 Thread Jordan Justen
Fixes various piglit tests: spec/glsl-1.50/compiler/incorrect-in-layout-qualifier-*.geom Signed-off-by: Jordan Justen --- src/glsl/ast_type.cpp | 11 +++ 1 file changed, 11 insertions(+) diff --git a/src/glsl/ast_type.cpp b/src/glsl/ast_type.cpp index 7f3737b..f1c59da 100644 --- a/src/g

[Mesa-dev] [PATCH v3 5/9] mesa: initialize gl_geometry_program Invocations field

2014-02-04 Thread Jordan Justen
Signed-off-by: Jordan Justen Reviewed-by: Paul Berry --- src/mesa/main/mtypes.h | 1 + src/mesa/main/shaderapi.c | 1 + src/mesa/program/program.c | 1 + src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 1 + src/mesa/state_tracker/st_program.c

[Mesa-dev] [PATCH v3 6/9] main/shaderapi: GL_GEOMETRY_SHADER_INVOCATIONS GetProgramiv support

2014-02-04 Thread Jordan Justen
v3: * Add check for ARB_gpu_shader5 Signed-off-by: Jordan Justen Reviewed-by: Paul Berry --- src/mesa/main/shaderapi.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index a8336c9..1b2158f 100644 --- a/src/mesa/main/shaderapi.c +

[Mesa-dev] [PATCH v3 0/9] i965/gen7 instanced GS support for ARB_gpu_shader5

2014-02-04 Thread Jordan Justen
v3: * Fix major brokenness of dual instance mode operation using Paul's suggestions * Update parsing to allow separate primitive and invocation declarations. Fixes piglit test: spec/arb_gpu_shader5/execution/invocation-id-in-separate-gs * New: glsl: Generate error for invalid input layo

[Mesa-dev] [PATCH v3 1/9] glsl: convert GS input primitive to use ast_type_qualifier

2014-02-04 Thread Jordan Justen
This allows the use of merge_qualifier, which will be needed for supporting multiple input qualifiers, such as the primitive type type being specified separately from the invocations count (ARB_gpu_shader5). state->gs_input_prim_type is moved into state->in_qualifier->prim_type state->gs_input_pr

[Mesa-dev] [PATCH 2/2] r600g, radeonsi: set resource domains in one place (v2)

2014-02-04 Thread Marek Olšák
From: Marek Olšák v2: This doesn't change the behavior. It only moves the tiling check to r600_init_resource and removes the usage parameter. --- src/gallium/drivers/r600/r600_state_common.c| 4 +-- src/gallium/drivers/radeon/r600_buffer_common.c | 33 - src/gall

[Mesa-dev] [PATCH 1/2] r600g, radeonsi: query the buffer domain from the kernel for DRI2 buffers

2014-02-04 Thread Marek Olšák
From: Marek Olšák Better then guessing it. Yeah we have had this query for a long time... --- src/gallium/drivers/radeon/r600_texture.c | 2 +- src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 23 +++ src/gallium/winsys/radeon/drm/radeon_winsys.h | 5 + 3 files chan

[Mesa-dev] [Bug 72895] Missing trees in flightgear 2.12.1 with r600 driver and mesa 10.0.1

2014-02-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=72895 --- Comment #9 from Fredrik Höglund --- I believe this is a bug in mesa core, not in a specific driver. I haven't been able to isolate the code that renders the trees (there are no trees visible anywhere near the airport in the version packaged

Re: [Mesa-dev] [PATCH 2/2] st/mesa: add support for GL_ARB_viewport_array (v0.2)

2014-02-04 Thread Ilia Mirkin
On Tue, Jan 21, 2014 at 1:09 AM, Dave Airlie wrote: > From: Dave Airlie > > this just ties the mesa code to the pre-existing gallium interface, > I'm not sure what to do with the CSO stuff yet. > > 0.2: fix min/max bounds > > Signed-off-by: Dave Airlie Series is Acked-by: Ilia Mirkin Don't kn

[Mesa-dev] [Bug 72895] Missing trees in flightgear 2.12.1 with r600 driver and mesa 10.0.1

2014-02-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=72895 --- Comment #8 from Barto --- the problem of missing trees in flightgear is still here in mesa 10.0.3, but I notice if I type : "export LIBGL_ALWAYS_SOFTWARE=1" the bug is still here in flightgear, so even with software rendering mode I get the

Re: [Mesa-dev] [PATCH 26/35] meta: Use common GLSL code for blits

2014-02-04 Thread Marek Olšák
On Tue, Feb 4, 2014 at 9:06 PM, Roland Scheidegger wrote: > Am 04.02.2014 13:19, schrieb Marek Olšák: >> On Tue, Feb 4, 2014 at 10:29 AM, Rogovin, Kevin >> wrote: >>> >>> I don't believe our hardware can support GL_ARB_shader_stencil_export. The render target write message can take RGB

Re: [Mesa-dev] [PATCH] gallivm: fix F2U opcode

2014-02-04 Thread Zack Rusin
Looks good. Reviewed-by: Zack Rusin - Original Message - > From: Roland Scheidegger > > Previously, we were really doing F2I. And also move it to generic section. > (Note that for llvmpipe the code generated is definitely bad, due to lack > of unsigned conversions with sse. I think tho

Re: [Mesa-dev] [PATCH] gallivm: fix F2U opcode

2014-02-04 Thread Jose Fonseca
Looks good to me. Jose - Original Message - > From: Roland Scheidegger > > Previously, we were really doing F2I. And also move it to generic section. > (Note that for llvmpipe the code generated is definitely bad, due to lack > of unsigned conversions with sse. I think though what llvm

Re: [Mesa-dev] [PATCH] gallivm: allow large numbers of temporaries

2014-02-04 Thread Jose Fonseca
Sounds great to me. Jose - Original Message - > The number of allowed temporaries increases almost with every > iteration of an api. We used to support 128, then we started > increasing and the newer api's support 4096+. So if we notice > that the number of temporaries is larger than our

Re: [Mesa-dev] [PATCH] gallivm: allow large numbers of temporaries

2014-02-04 Thread Roland Scheidegger
Am 04.02.2014 03:43, schrieb Zack Rusin: > The number of allowed temporaries increases almost with every > iteration of an api. We used to support 128, then we started > increasing and the newer api's support 4096+. So if we notice > that the number of temporaries is larger than our statically > al

Re: [Mesa-dev] [PATCH RFC 00/11] glsl: add Single Static Assignment (SSA)

2014-02-04 Thread Connor Abbott
On Fri, Jan 31, 2014 at 3:34 PM, Paul Berry wrote: > On 22 January 2014 09:16, Connor Abbott wrote: > >> This series enables GLSL IR support for SSA, including passes to convert >> to and from SSA form. SSA is a form of the intermediate representation >> of a compiler in which each variable is a

Re: [Mesa-dev] [PATCH 05/14] st/omx: initial OpenMAX support v3

2014-02-04 Thread Matt Turner
On Tue, Feb 4, 2014 at 7:17 AM, Christian König wrote: > diff --git a/configure.ac b/configure.ac > index ba158e8..98007f9 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -2011,6 +2037,7 @@ AC_CONFIG_FILES([Makefile > src/gallium/state_trackers/gbm/Makefile >

Re: [Mesa-dev] [PATCH 26/35] meta: Use common GLSL code for blits

2014-02-04 Thread Roland Scheidegger
Am 04.02.2014 13:19, schrieb Marek Olšák: > On Tue, Feb 4, 2014 at 10:29 AM, Rogovin, Kevin > wrote: >> >> >>> I don't believe our hardware can support GL_ARB_shader_stencil_export. >>> The render target write message can take RGBA, depth, and sample masks, >>> but not stencil. Without that, it'

Re: [Mesa-dev] [PATCH] centroid affects interpolation

2014-02-04 Thread Chris Forbes
`centroid` has never been an interpolation qualifier, though. In GLSL 1.20, `centroid varying` is a storage qualifier. In GLSL 1.30, `centroid in`, `centroid out` are added as storage qualifiers. In GLSL 4.20 (or ARB_shading_language_420pack), `centroid`, `sample`, and `patch` are split from `in`

Re: [Mesa-dev] [PATCH] r600g,radeonsi: set domains in one place; put DRI2 tiled textures in VRAM

2014-02-04 Thread Christian König
Am 04.02.2014 20:42, schrieb Marek Olšák: From: Marek Olšák This is a rework of "r600g,radeonsi: force VRAM placement for DRI2 buffers". It mainly consolidates the code determining resource placements. It also takes Prime into account. --- src/gallium/drivers/r600/r600_state_common.c| 4

[Mesa-dev] [PATCH] r600g,radeonsi: set domains in one place; put DRI2 tiled textures in VRAM

2014-02-04 Thread Marek Olšák
From: Marek Olšák This is a rework of "r600g,radeonsi: force VRAM placement for DRI2 buffers". It mainly consolidates the code determining resource placements. It also takes Prime into account. --- src/gallium/drivers/r600/r600_state_common.c| 4 +- src/gallium/drivers/radeon/r600_buffer_co

[Mesa-dev] [PATCH] configure: Use LLVM shared libraries by default

2014-02-04 Thread Tom Stellard
From: Tom Stellard Linking with LLVM static libraries is easily broken by changes to the llvm-config program or when LLVM adds, removes, or changes library components. Keeping up with these changes requires a lot of maintanence effort to keep the build working on the master and stable branches.

[Mesa-dev] [PATCH] gallivm: fix F2U opcode

2014-02-04 Thread sroland
From: Roland Scheidegger Previously, we were really doing F2I. And also move it to generic section. (Note that for llvmpipe the code generated is definitely bad, due to lack of unsigned conversions with sse. I think though what llvm does (using scalar conversions to 64bit signed either with x87 f

Re: [Mesa-dev] [PATCH] mesa: remove stray bits of GL_EXT_cull_vertex

2014-02-04 Thread Eric Anholt
Brian Paul writes: > GL_EXT_cull_vertex was removed back in 2010 in commit 02984e3536 > but these bits still lingered. Reviewed-by: Eric Anholt pgpQggYJFrIcn.pgp Description: PGP signature ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org htt

[Mesa-dev] [PATCH v2] loader: Get driver name from udev hwdb when available

2014-02-04 Thread Kristian Høgsberg
The udev hwdb is a mechanism for applying udev properties to devices at hotplug time. The hwdb text files are compiled into a binary database that lets udev efficiently look up and apply properties to devices that match a given modalias. This patch exports the mesa PCI ID tables as hwdb files and

Re: [Mesa-dev] [PATCH 3/3] i965: Bump MaxTexMbytes from 1GB to 1.5GB.

2014-02-04 Thread Daniel Vetter
On Sun, Feb 02, 2014 at 03:16:45AM -0800, Kenneth Graunke wrote: > Even with the other limits raised, TestProxyTexImage would still reject > textures > 1GB in size. This is an artificial limit; nothing prevents > us from having a larger texture. I stayed shy of 2GB to avoid the > larger-than-aper

Re: [Mesa-dev] [PATCH 30/30] i965/cs: Allow ARB_compute_shader to be enabled via env var.

2014-02-04 Thread Jordan Justen
On Tue, Feb 4, 2014 at 8:43 AM, Paul Berry wrote: > On 1 February 2014 23:21, Jordan Justen wrote: >> >> On Thu, Jan 9, 2014 at 6:19 PM, Paul Berry >> wrote: >> > This will allow testing of compute shader functionality before it is >> > completed. >> > >> > To enable ARB_compute_shader functiona

[Mesa-dev] [PATCH] mesa: remove stray bits of GL_EXT_cull_vertex

2014-02-04 Thread Brian Paul
GL_EXT_cull_vertex was removed back in 2010 in commit 02984e3536 but these bits still lingered. --- src/mesa/main/matrix.c | 13 + src/mesa/main/mtypes.h |3 --- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/src/mesa/main/matrix.c b/src/mesa/main/matrix.c index b

Re: [Mesa-dev] Potential fix for #70410

2014-02-04 Thread Aaron Watry
Yup, that's the same exact patch that I sent to the LLVM list. It's been working just fine along with the mesa patch in: https://bugs.freedesktop.org/attachment.cgi?id=91764 I've been using that on my own system for a while now. It could probably use more eyes/testing, but it seems ok from my us

Re: [Mesa-dev] [PATCH] gallivm: allow large numbers of temporaries

2014-02-04 Thread Brian Paul
On 02/03/2014 07:43 PM, Zack Rusin wrote: The number of allowed temporaries increases almost with every iteration of an api. We used to support 128, then we started increasing and the newer api's support 4096+. So if we notice that the number of temporaries is larger than our statically allocated

Re: [Mesa-dev] [PATCH 30/30] i965/cs: Allow ARB_compute_shader to be enabled via env var.

2014-02-04 Thread Paul Berry
On 1 February 2014 23:21, Jordan Justen wrote: > On Thu, Jan 9, 2014 at 6:19 PM, Paul Berry > wrote: > > This will allow testing of compute shader functionality before it is > > completed. > > > > To enable ARB_compute_shader functionality in the i965 driver, set > > INTEL_COMPUTE_SHADER=1. > >

[Mesa-dev] [Bug 74508] Steam games not launching.

2014-02-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=74508 Kenneth Graunke changed: What|Removed |Added Assignee|mesa-dev@lists.freedesktop. |i...@freedesktop.org

Re: [Mesa-dev] Potential fix for #70410

2014-02-04 Thread Krzysztof A. Sobiecki
"Armin K." writes: > This would be easier to fix in LLVM. The newline is rather unnecessary > in the output. I'm neither able or willing to hack LLVM, but https://bugs.freedesktop.org/attachment.cgi?id=91751 looks nice? -- X was an interactive protocol: alpha blending a full-screen image looked

Re: [Mesa-dev] Potential fix for #70410

2014-02-04 Thread Armin K.
On 02/04/2014 05:24 PM, Krzysztof A. Sobiecki wrote: > A small patch to work around a llvm-config-3.5 change, with a newline > hack. > > > > > > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/li

[Mesa-dev] [Bug 70410] egl-static/Makefile: linking fails with llvm >= 3.4

2014-02-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=70410 --- Comment #19 from Krzysztof A. Sobiecki --- Patch sent to mesa-dev, if included I will close this bug, for now. -- You are receiving this mail because: You are the assignee for the bug. ___ mesa-de

Re: [Mesa-dev] [PATCH 09/14] radeon: just don't map VRAM buffers at all

2014-02-04 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Tue, Feb 4, 2014 at 4:17 PM, Christian König wrote: > From: Christian König > > Signed-off-by: Christian König > --- > src/gallium/drivers/radeon/r600_texture.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/src/gallium/drivers/

Re: [Mesa-dev] Potential fix for #70410

2014-02-04 Thread Aaron Watry
On Tue, Feb 4, 2014 at 10:28 AM, Armin K. wrote: > On 02/04/2014 05:24 PM, Krzysztof A. Sobiecki wrote: >> A small patch to work around a llvm-config-3.5 change, with a newline >> hack. >> > > This would be easier to fix in LLVM. The newline is rather unnecessary > in the output. > I fully agree.

[Mesa-dev] Potential fix for #70410

2014-02-04 Thread Krzysztof A. Sobiecki
A small patch to work around a llvm-config-3.5 change, with a newline hack. Signed-off-by: Krzysztof Sobiecki gmail.com> Tested-by: Kai Wasserbäch --- LLVM 3.5 added --system-libs to llvm-config, fix build failure. Fixes #70410 diff --git a/configure.ac b/configure.ac index ba158e8..c31d962 10

[Mesa-dev] [PATCH] centroid affects interpolation

2014-02-04 Thread Kevin Rogovin
Place centroid keyword as an interpolation qualifier. Previously was a storage qualifier. Fixes front end to accept input of the form "centroid in type variable" --- src/glsl/glsl_parser.yy | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/glsl/glsl_parser.yy b

[Mesa-dev] [PATCH 13/14] st/omx: initial OpenMAX H264 encoder v4

2014-02-04 Thread Christian König
From: Christian König v2 (chk): fix eos handling v3 (leo): implement scaling configuration support v4 (leo): fix bitrate bug Signed-off-by: Christian König Signed-off-by: Leo Liu --- src/gallium/drivers/radeon/radeon_vce_40_2_2.c | 2 +- src/gallium/state_trackers/omx/Makefile.am | 3

[Mesa-dev] [PATCH 08/14] r600/video: disable tilling for now

2014-02-04 Thread Christian König
From: Christian König Signed-off-by: Christian König --- src/gallium/drivers/r600/r600_uvd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/r600/r600_uvd.c b/src/gallium/drivers/r600/r600_uvd.c index e0db492..c3da7f8 100644 --- a/src/gallium/drive

[Mesa-dev] [PATCH 07/14] radeon/video: directly create buffers in the right domain

2014-02-04 Thread Christian König
From: Christian König Avoid moving things around on start of stream. Signed-off-by: Christian König --- src/gallium/drivers/radeon/radeon_uvd.c | 6 +++--- src/gallium/drivers/radeon/radeon_video.c | 9 ++--- src/gallium/drivers/radeon/radeon_video.h | 4 +++- 3 files changed, 12 inserti

Re: [Mesa-dev] [PATCH 27/30] r600g: calculate a better value for array_size

2014-02-04 Thread Grigori Goronzy
On 04.02.2014 00:53, Dave Airlie wrote: From: Dave Airlie attempt to calculate a better value for array size to avoid breaking apps. Signed-off-by: Dave Airlie --- src/gallium/drivers/r600/r600_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers

[Mesa-dev] [PATCH 14/14] st/omx: add workaround for bug in Bellagio

2014-02-04 Thread Christian König
From: Christian König Not blocking for the message thread can lead to accessing freed up memory. Signed-off-by: Christian König --- src/gallium/state_trackers/omx/entrypoint.c | 13 + src/gallium/state_trackers/omx/entrypoint.h | 2 ++ src/gallium/state_trackers/omx/vid_dec.c|

[Mesa-dev] [PATCH 09/14] radeon: just don't map VRAM buffers at all

2014-02-04 Thread Christian König
From: Christian König Signed-off-by: Christian König --- src/gallium/drivers/radeon/r600_texture.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c index 878b26f..eb1e191 100644 --- a/s

[Mesa-dev] [PATCH 01/14] radeon: update legal notes on UVD

2014-02-04 Thread Christian König
From: Christian König Signed-off-by: Christian König --- docs/README.UVD | 31 +++ 1 file changed, 31 insertions(+) diff --git a/docs/README.UVD b/docs/README.UVD index 36b467e..38ea864 100644 --- a/docs/README.UVD +++ b/docs/README.UVD @@ -11,3 +11,34 @@ INFORMATIO

[Mesa-dev] [PATCH 10/14] vl: add H264 encoding interface

2014-02-04 Thread Christian König
From: Christian König Signed-off-by: Christian König Signed-off-by: Leo Liu --- src/gallium/auxiliary/vl/vl_decoder.c | 2 +- src/gallium/drivers/radeon/radeon_video.c | 5 ++-- src/gallium/include/pipe/p_video_codec.h | 13 + src/gallium/include/pipe/p_video_enums.h | 4 +--

Re: [Mesa-dev] [PATCH] R600/SI: Add pattern for zero-extending i1 to i32

2014-02-04 Thread Tom Stellard
On Tue, Feb 04, 2014 at 12:56:39PM +0900, Michel Dänzer wrote: > From: Michel Dänzer > > Fixes opencl-example if_* tests with radeonsi. > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74469 > Signed-off-by: Michel Dänzer Reviewed-by: Tom Stellard > --- > lib/Target/R600/SIInstructi

[Mesa-dev] [PATCH 12/14] radeon/vce: initial VCE support v6

2014-02-04 Thread Christian König
From: Christian König v2 (chk): revert feedback buffer hack v3 (slava): fixed bitstream size calculation v4 (chk): always create buffers in the right domain v5 (chk): flush async v6 (chk): rework fw interface add version check Signed-off-by: Christian König Signed-off-by: Leo Liu Signed-off-by

[Mesa-dev] [PATCH 11/14] radeon/winsys: add VCE support v3

2014-02-04 Thread Christian König
From: Christian König v2: add fw version query v3: add README.VCE Signed-off-by: Christian König --- docs/README.VCE | 43 +++ src/gallium/winsys/radeon/drm/radeon_drm_cs.c | 10 ++ src/gallium/winsys/radeon/drm/radeon_drm_winsys.c

  1   2   >