Mesa (master): 25 new commits

2021-01-25 Thread GitLab Mirror
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=cf5df156224e3fb78fa8e80065dabce22900d1d8
Author: Connor Abbott 
Date:   Tue Dec 8 17:11:24 2020 +0100

ntt: Assume that nir_tex_instr::dest_type is sized

Reviewed-by: Jason Ekstrand 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ae7a9d0585ac3b5eb439fa203687ba4889a7286f
Author: Connor Abbott 
Date:   Tue Dec 8 15:21:48 2020 +0100

ir3: Assume that nir_tex_instr::dest_type is sized

Reviewed-by: Jason Ekstrand 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=5c92b3c460b87dda5ee87a1b196466a0f42e1cf3
Author: Connor Abbott 
Date:   Tue Dec 8 15:15:35 2020 +0100

panfrost: Assume that nir_tex_instr::dest_type is sized

Get rid of some now-redundant code, and cleanup the is-float check in
the bifrost compiler.

Reviewed-by: Alyssa Rosenzweig 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6ca1ab3bb4902d3c86f83e83e065b0f1a2bd79ff
Author: Connor Abbott 
Date:   Tue Dec 8 13:50:14 2020 +0100

nir/lower_tex: Assume that nir_tex_instr::dest_type is sized

This reverts the code back to the form it was before, but with an
explicitly sized float32 instead of float, now that all producers are
switched over.

Reviewed-by: Jason Ekstrand 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=708c47e663be686b150c1dae33fee5b8323c8d1b
Author: Connor Abbott 
Date:   Tue Dec 8 15:44:07 2020 +0100

nir: Validate nir_tex_instr::dest_type bitsize

In theory, we could also verify this against the sampler type for
sampler derefs, but there are a number of complications there:

- SPIR-V 1.4 lets you override the signedness of integer samplers
per-instruction. So the base type may not match.
- mediump/RelaxedPrecision samplers may get lowered to f16 in the
instruction or may not. So the bitsize may not match.

Reviewed-by: Jason Ekstrand 
Reviewed-by: Alyssa Rosenzweig 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=65a35dc7ea85fa9859dbd729cc0d874d9861ade3
Author: Connor Abbott 
Date:   Tue Dec 8 13:47:08 2020 +0100

ptn: Use sized types for nir_tex_instr::dest_type

Reviewed-by: Jason Ekstrand 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6af5181f137c7fa54d9ed64ba2989a37f992620b
Author: Connor Abbott 
Date:   Tue Dec 8 13:46:35 2020 +0100

vtn: Use sized types for nir_tex_instr::dest_type

Reviewed-by: Jason Ekstrand 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d5e54c6edb8e60b038a3bb50df5b7d6f5391e27e
Author: Connor Abbott 
Date:   Tue Dec 8 13:46:17 2020 +0100

glsl/nir: Use sized types for nir_tex_instr::dest_type

Reviewed-by: Jason Ekstrand 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=60bb3fec54f1eccbe0f43ba61d02a78fb883347b
Author: Connor Abbott 
Date:   Mon Jan 11 15:31:17 2021 +0100

st/atifs: Use sized types for nir_tex_instr::dest_type

Reviewed-by: Jason Ekstrand 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=81336499181058b0b7c1a6424a6185113148ac0f
Author: Connor Abbott 
Date:   Tue Dec 8 13:46:54 2020 +0100

ttn: Use sized types for nir_tex_instr::dest_type

Reviewed-by: Jason Ekstrand 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=4b623afc3f7830bb3a3f303cee87e7f8a1b32a1b
Author: Connor Abbott 
Date:   Tue Dec 8 13:43:54 2020 +0100

gallium/nir: Use sized types for nir_tex_instr::dest_type

Reviewed-by: Jason Ekstrand 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ff0b7e0da93624f3727804927cdf92c4e3cce74e
Author: Connor Abbott 
Date:   Tue Dec 8 13:38:41 2020 +0100

st/mesa: Use sized types for nir_tex_instr::dest_type

Reviewed-by: Jason Ekstrand 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=b2da598ff90fdd64ca72bb03bf269e53ee0b1f21
Author: Connor Abbott 
Date:   Tue Dec 8 13:45:55 2020 +0100

nir: Use sized types for nir_tex_instr::dest_type

Revieweeviewed-by: Jason Ekstrand 
Rev

Mesa (master): 25 new commits

2021-01-21 Thread GitLab Mirror
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=3f9a6d333b3e5f05ef6560123ee98d217358be89
Author: Mike Blumenkrantz 
Date:   Tue Nov 17 18:52:54 2020 -0500

zink: export shader image caps using features

Reviewed-by: Erik Faye-Lund 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=0daa61553d0888e207ac0546794d9f45a3ac0921
Author: Mike Blumenkrantz 
Date:   Tue Nov 17 18:52:11 2020 -0500

zink: check if multisample support exists for shader image formats

avoid issues later by checking this now while we're here

Reviewed-by: Erik Faye-Lund 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=b9b812edb832e239f74ea065111284879f2d9e11
Author: Mike Blumenkrantz 
Date:   Tue Nov 17 18:50:35 2020 -0500

zink: handle shader image descriptor updates during draw

this is ugly and will be cleaned up later, but the idea is to have identical
handling between samplers and images such that for each type, an array of 
resources
is processed and it's just setting up variables which fall through to the 
actual
descriptor struct processing

Acked-by: Erik Faye-Lund 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9ba38ab6facff5ef93bc88ed81c0e12fab314d1a
Author: Mike Blumenkrantz 
Date:   Tue Nov 17 18:49:10 2020 -0500

zink: add a pipe_context::set_shader_images hook

this is sort of a weird mechanism since shader images have no allocated
struct and just hang out on the context

Reviewed-by: Erik Faye-Lund 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e1f798ca5015992b4e54dae3da8f5d2d136f
Author: Mike Blumenkrantz 
Date:   Tue Nov 17 18:48:36 2020 -0500

zink: break out bufferview creation into separate function

we'll reuse this for shader images

Reviewed-by: Erik Faye-Lund 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c4d00b9ca4e27cdf1668293c0866c8722c2fce88
Author: Mike Blumenkrantz 
Date:   Tue Nov 17 18:47:33 2020 -0500

zink: handle image descriptors during zink_shader creation

Reviewed-by: Erik Faye-Lund 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=10fb7a8c0ff94700416ff6a0ebb2a8415e3817fa
Author: Mike Blumenkrantz 
Date:   Tue Nov 17 18:46:58 2020 -0500

zink: enable image caps in ntv when a shader has images

since we don't have the device info we have to emit some caps on the
fly here

Reviewed-by: Erik Faye-Lund 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=245d9fa21b138c2ca9c99d7004c5f652330e615d
Author: Mike Blumenkrantz 
Date:   Tue Nov 17 18:46:22 2020 -0500

zink: enable early frag test execution in ntv when necessary

Reviewed-by: Erik Faye-Lund 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9cd2aff1a3470ab0551e861fb242242724435ea3
Author: Mike Blumenkrantz 
Date:   Tue Nov 17 18:45:17 2020 -0500

zink: add handling for all basic image ops in ntv

now that atomic handling is standardized, there's only a few actual ops left
to have proper image support

Reviewed-by: Erik Faye-Lund 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a4f06b3528837e84f9e7bf5e60645a6d986183dc
Author: Mike Blumenkrantz 
Date:   Tue Nov 17 18:43:54 2020 -0500

zink: expand ntv array derefs to track image derefs

this is sort of what we should be moving towards for io as well at some 
point,
the gist of the change here being that when images are deref'd, we need
to be able to do a lookup on the deref store later on in order to get the
image back

Reviewed-by: Erik Faye-Lund 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=77b6b3eb0b8e64fe4439b1dd1c3c4c50664300e7
Author: Mike Blumenkrantz 
Date:   Thu Dec 17 19:45:48 2020 -0500

zink: add nir_var_uniform case to get_storage_class()

Reviewed-by: Erik Faye-Lund 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=2ade1f3a6e7abe000775614eda1eae1d38e61ef0
Author: Mike Blumenkrantz 
Date:   Tue Nov 17 18:43:10 2020 -0500

zink: handle nir_intrinsic_memory_barrier in ntv

Reviewed-b

Mesa (master): 25 new commits

2020-08-13 Thread GitLab Mirror
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=0c621dcf0ed21eec658e45cee395f66344ac5190
Author: Alyssa Rosenzweig 
Date:   Tue Aug 11 21:30:46 2020 -0400

panfrost: XMLify enum mali_format

Note we are just handling the index part of the format. This is *not*
the full format, which would include the swizzle (or v7 equivalent) and
the sRGB flag. But in the interest of incremental progress, let's move
this part over first and save on decoding complexity.

To avoid substantial churn from prefixing FORMAT to format names, we
special case the enums to avoid the prefix. This is undesirable but
reduces churn, especially since format handling is slated for an
overhaul soon to accomodate v7

Signed-off-by: Alyssa Rosenzweig 
Reviewed-by: Tomeu Vizoso 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=78445ce695444a176719e4bdc4eb9bfe159169c7
Author: Alyssa Rosenzweig 
Date:   Tue Aug 11 21:19:52 2020 -0400

panfrost: XMLify exception access

Signed-off-by: Alyssa Rosenzweig 
Reviewed-by: Tomeu Vizoso 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=99d17fb771b77af5c693ce86aae6a61a05c05843
Author: Alyssa Rosenzweig 
Date:   Tue Aug 11 21:04:01 2020 -0400

panfrost: XMLify MSAA writeout mode

Signed-off-by: Alyssa Rosenzweig 
Reviewed-by: Tomeu Vizoso 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c9bdba26b0c16cac05bb14674458da2acd462797
Author: Alyssa Rosenzweig 
Date:   Tue Aug 11 21:00:47 2020 -0400

panfrost: XMLify Block Format

Signed-off-by: Alyssa Rosenzweig 
Reviewed-by: Tomeu Vizoso 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8c1ac96eb6e037686c391b5cdd334b271c6804b6
Author: Alyssa Rosenzweig 
Date:   Thu Aug 6 18:29:51 2020 -0400

panfrost: Drop unused mali_channel_swizzle

Signed-off-by: Alyssa Rosenzweig 
Reviewed-by: Tomeu Vizoso 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ad0b32cdbd512dd56c66426789c7b801a5db8a4f
Author: Alyssa Rosenzweig 
Date:   Thu Aug 6 18:12:28 2020 -0400

panfrost: XMLify Bifrost textures

Signed-off-by: Alyssa Rosenzweig 
Reviewed-by: Tomeu Vizoso 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f008a6314c67fb11baeb70bdf4efe83b3476f029
Author: Alyssa Rosenzweig 
Date:   Tue Aug 11 17:27:36 2020 -0400

panfrost: XMLify Midgard textures

Signed-off-by: Alyssa Rosenzweig 
Reviewed-by: Tomeu Vizoso 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=b10c3c869d9f1693198517c40b95acf3a11f80d4
Author: Alyssa Rosenzweig 
Date:   Tue Aug 11 18:25:03 2020 -0400

panfrost: XMLify Bifrost samplers

Signed-off-by: Alyssa Rosenzweig 
Reviewed-by: Tomeu Vizoso 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f74186baa5efd1147916b39a819fee9e427c8ecd
Author: Alyssa Rosenzweig 
Date:   Tue Aug 11 18:23:12 2020 -0400

panfrost: XMLify Midgard samplers

Signed-off-by: Alyssa Rosenzweig 
Reviewed-by: Tomeu Vizoso 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c4c8c8e8fbd30968a43159cee0add48449f27a3b
Author: Alyssa Rosenzweig 
Date:   Thu Aug 6 10:31:28 2020 -0400

panfrost: Don't mask coverage mask to 4-bits

While it is correct for MSAA 4x, it will break for MSAA 8x and 16x, and
it is only dubiously correct for no-MSAA. Drop the mask.

Signed-off-by: Alyssa Rosenzweig 
Reviewed-by: Tomeu Vizoso 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6afd4addefa111c112b82a88824db7af61003407
Author: Alyssa Rosenzweig 
Date:   Wed Aug 12 11:42:11 2020 -0400

panfrost: Simplify depth/stencil/alpha

The alpha test is lowered by the frontend so we can drop that unused
code path, and stencil state can be computed at CSO create time to
reduce draw-time complexity.

Signed-off-by: Alyssa Rosenzweig 
Reviewed-by: Tomeu Vizoso 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1675d92d663bf92cb5f8d699a096748e7bdd768f
Author: Alyssa Rosenzweig 
Date:   Thu Aug 6 10:02:35 2020 -0400

panfrost: Simplif

Mesa (master): 25 new commits

2020-07-24 Thread GitLab Mirror
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=5b300bec9ad78f8a5d946f19aa9a97259a4f034b
Author: Samuel Pitoiset 
Date:   Fri Jul 10 09:03:44 2020 +0200

radv: clean up remaining pipeline init functions

Signed-off-by: Samuel Pitoiset 
Reviewed-by: Bas Nieuwenhuizen 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=5575ce0a28e8a157843688336f123054a0d9f9d5
Author: Samuel Pitoiset 
Date:   Fri Jul 10 08:54:58 2020 +0200

radv: remove useless return value to radv_pipeline_scratch_init()

Signed-off-by: Samuel Pitoiset 
Reviewed-by: Bas Nieuwenhuizen 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=0721e2d1ab66346e08cf5f66af70095c7dc61f1d
Author: Samuel Pitoiset 
Date:   Fri Jul 10 08:53:00 2020 +0200

radv: add radv_pipeline_init_shader_stages_state()

Signed-off-by: Samuel Pitoiset 
Reviewed-by: Bas Nieuwenhuizen 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f3774ec9ac36a41944455b842c398690c75c8a77
Author: Samuel Pitoiset 
Date:   Thu Jul 9 11:54:37 2020 +0200

radv: constify all radv_pipeline_generate_*() helpers

To make clear that the pipeline should be read only.

Signed-off-by: Samuel Pitoiset 
Reviewed-by: Bas Nieuwenhuizen 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f32cb825159acdfb727039495581b1fb96d5c90c
Author: Samuel Pitoiset 
Date:   Thu Jul 9 11:43:29 2020 +0200

radv: assign pipeline gfx fields before PM4 emission

To be able to constify all radv_pipeline_generate_*() helpers.

Signed-off-by: Samuel Pitoiset 
Reviewed-by: Bas Nieuwenhuizen 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=2a5fb87de2e536cc82f184275edea755bec22f44
Author: Samuel Pitoiset 
Date:   Thu Jul 9 11:49:32 2020 +0200

radv: clean up binning state initialization

It's no longer emitted directly in the pipeline.

Signed-off-by: Samuel Pitoiset 
Reviewed-by: Bas Nieuwenhuizen 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=08dd70465e601a85be31982d6e9054e23ad7aad8
Author: Samuel Pitoiset 
Date:   Thu Jul 9 11:36:45 2020 +0200

radv: clean up adjusting MSAA state if conservative rast is enabled

Signed-off-by: Samuel Pitoiset 
Reviewed-by: Bas Nieuwenhuizen 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=067b01c5e61b9fd8654668c6388f9119bb179760
Author: Samuel Pitoiset 
Date:   Thu Jul 9 11:07:02 2020 +0200

radv: add radv_pipeline_generate_vgt_gs_out()

Signed-off-by: Samuel Pitoiset 
Reviewed-by: Bas Nieuwenhuizen 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=749d513467560e2dd2e153abb2db125bc4942059
Author: Samuel Pitoiset 
Date:   Thu Jul 9 11:05:54 2020 +0200

radv: add radv_pipeline_init_input_assembly_state()

Signed-off-by: Samuel Pitoiset 
Reviewed-by: Bas Nieuwenhuizen 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e31f8b967645087fdda7c3b63db894c306f2cbd2
Author: Samuel Pitoiset 
Date:   Thu Jul 9 10:42:57 2020 +0200

radv: clean up tessellation state emission

Signed-off-by: Samuel Pitoiset 
Reviewed-by: Bas Nieuwenhuizen 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9b691bfb6cfc7ce4a18dd913e9c524a40866a832
Author: Samuel Pitoiset 
Date:   Thu Jul 9 10:36:28 2020 +0200

radv: remove unnecessary radv_tessellation_state::lds_size

Signed-off-by: Samuel Pitoiset 
Reviewed-by: Bas Nieuwenhuizen 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a1b237b9ef684ef1684508921c70259c35ff8463
Author: Samuel Pitoiset 
Date:   Thu Jul 9 10:33:16 2020 +0200

radv: set LDS TCS size at shaders creation for GFX9+

Signed-off-by: Samuel Pitoiset 
Reviewed-by: Bas Nieuwenhuizen 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=cf89bdb9ba9c7a7ba39d142ee3c83e0379c2092a
Author: Samuel Pitoiset 
Date:   Thu Jul 9 10:06:43 2020 +0200

radv: align the LDS size in calculate_tess_lds_size()

Signed-off-by: Samuel Pitoiset 
Reviewed-by: Bas Nieuwen

Mesa (master): 25 new commits

2020-05-19 Thread GitLab Mirror
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=3c355f1ae8be2a7e1f9141c5433bdbb35fdcd7e6
Author: Rob Clark 
Date:   Sat May 16 13:32:14 2020 -0700

freedreno/ir3/validate: add checking for types and opcodes

For cases where instructions have a src and/or dst type, validate that
it matches the src/dst register types.  And for cases where there are
different opcodes for half vs full, validate that the opcode matches.

Now that we maintain this properly throughout the stages of the ir, we
can drop the fixups from the RA pass.

Signed-off-by: Rob Clark 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f484d63617afe67f9eb8ba98f96e5c3617aa43c8
Author: Rob Clark 
Date:   Sat May 16 14:24:45 2020 -0700

freedreno/ir3: add helpers to deal with src/dst types

Add some helpers to properly maintain src/dst types, and in the cases
where opcode depends on src or dst type, maintain that as well.

Signed-off-by: Rob Clark 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=3561d34fff44ae82283dc1d4352e87d47793c40e
Author: Rob Clark 
Date:   Fri May 15 16:14:47 2020 -0700

freedreno/ir3: add simple validate pass

We can add to this as we notice other things that are worth validating
between ir3 passes.

Signed-off-by: Rob Clark 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=554f3d54ca1abac21df7ab052c1b48d9d44e774c
Author: Rob Clark 
Date:   Sun May 17 10:28:52 2020 -0700

freedreno/ir3: fix mismatched wrmask for overlapping VS inputs

Signed-off-by: Rob Clark 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=16cd232dbc31fd594b8ce6b04576870b36d301f6
Author: Rob Clark 
Date:   Sat May 16 18:03:25 2020 -0700

freedreno/ir3/cp: fix cmps folding

When we start doing cp iteratively, we hit the case that we've already
`cmps.s.*` into a `cmps.s.ne p0.x, ...`..  when we try to do that again
we can invert the logic condition.  So check specifically the condition
to prevent this.

TODO we could maybe be more clever about this to combine conditions.
But why isn't that happening in nir?  For example, see
dEQP-GLES31.functional.ssbo.layout.single_basic_array.packed.bool

Signed-off-by: Rob Clark 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=39de27d3b9031af5115504893b5e1bd42756d3db
Author: Rob Clark 
Date:   Sat May 16 17:47:49 2020 -0700

freedreno/ir3/print: print cat2 condition

Signed-off-by: Rob Clark 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=7b86b5ed7d355c97b5eb889637e9dd66d98a6e1d
Author: Rob Clark 
Date:   Sat May 16 15:58:04 2020 -0700

freedreno/ir3: fix immed type in create_addr0()

We can also remove a bunch of manual src/dst flag munging, since the
instruction builders handle this automatically now.

Signed-off-by: Rob Clark 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=3474ba53b5e6560e758cef51b50d248b6fb806ec
Author: Rob Clark 
Date:   Fri May 15 17:12:25 2020 -0700

freedreno/ir3/cf: handle multiple cov's properly

There can be multiple (for ex.) f32f16's from a single source, in
particular appearing in different blocks.  We need to update all uses
of the src which had conversion folded in, not all the uses of the
individual cov.  Also, to avoid invalidating the ssa use info that was
gathered at the beginning of the pass, don't actually eliminate the
cov, but instead change it to a simple mov that the cp pass can gobble
up.

Signed-off-by: Rob Clark 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=3db5d146e97e132e17fe7e3aca306c3523d14279
Author: Rob Clark 
Date:   Fri May 15 16:44:29 2020 -0700

freedreno/ir3: fix mismatched flags on split

We have to fixup the meta:split half flag, because `ir3_split_dest()` is
called before we fixup the dest type.  But we should fixup both the
split src and dest, as well as the thing it is splitting.

Signed-off-by: Rob Clark 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=b24b6a83653f1b53237288215cbff94ffeb2dc56
Author: Rob Clark 
Date:   Fri May 15 15:48:06 2020 -0700

freedreno/ir3/group: fix for half-regs

If we're 

Mesa (master): 25 new commits

2020-03-06 Thread GitLab Mirror
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=70349a2252a95f181de519be61ea84bd22381e4b
Author: Francisco Jerez 
Date:   Sun Mar 13 16:37:03 2016 -0700

intel/compiler: Calculate num_instructions in O(1) during register pressure 
calculation

And mark the variable declaration as const.

Reviewed-by: Matt Turner 
Tested-by: Marge Bot 

Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e5e4d016b94fc402c328d9a202504d811d2bb5ce
Author: Francisco Jerez 
Date:   Sun Mar 13 16:35:49 2016 -0700

intel/compiler: Move register pressure calculation into IR analysis object

This defines a new BRW_ANALYSIS object which wraps the register
pressure computation code along with its result.  For the rationale
see the previous commits converting the liveness and dominance
analysis passes to the IR analysis framework.

Reviewed-by: Matt Turner 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f6cdf66cd6e2515471c7944f67ddb87881c2366e
Author: Francisco Jerez 
Date:   Thu Mar 10 20:56:47 2016 -0800

entel/compiler: Simplify new_idom reduction in dominance tree calculation

Trivial, just use a few less tokens to do the same thing.

Reviewed-by: Matt Turner 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c9a608c0907ccdd745c8cb496e982bca68f8e6e4
Author: Francisco Jerez 
Date:   Thu Mar 10 20:49:54 2016 -0800

intel/compiler: Move dominance tree data structure into idom_tree object

It makes sense to keep the result of analysis passes independent from
the IR itself.  Instead of representing the idom tree as a pointer in
each basic block pointing to its immediate dominator, the whole
dominator tree is represented separately from the IR as an array of
pointers inside the idom_tree object.  This has the advantage that
it's no longer possible to use stale dominance results by accident
without having called require() beforehand, which makes sure that the
idom tree is recalculated if necessary.

Reviewed-by: Matt Turner 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c2a7eababf568ecd23377408e5f837e3bb2e9943
Author: Francisco Jerez 
Date:   Wed Mar 9 23:31:05 2016 -0800

intel/compiler: Move idom tree calculation and related logic into analysis 
object

This only does half of the work.  The actual representation of the
idom tree is left untouched, but the computation algorithm is moved
into a separate analysis result class wrapped in a BRW_ANALYSIS
object, along with the intersect() and dump_domtree() auxiliary
functions in order to keep things tidy.

Reviewed-by: Matt Turner 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=2878817197fe94fe0c20efdf2947d63576e3ea8a
Author: Francisco Jerez 
Date:   Sun Mar 13 00:09:16 2016 -0800

intel/compiler: Drop invalidate_live_intervals()

Reviewed-by: Matt Turner 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=acf24df2017598eb23c57599e39738e0ec059438
Author: Francisco Jerez 
Date:   Sun Mar 13 16:33:39 2016 -0700

intel/compiler/vec4: Switch liveness analysis to IR analysis framework

This involves wrapping vec4_live_variables in a BRW_ANALYSIS object
and hooking it up to invalidate_analysis() so it's properly
invalidated.  Seems like a lot of churn but it's fairly
straightforward.  The vec4_visitor invalidate_ and
calculate_live_intervals() methods are no longer necessary after this
change.

Reviewed-by: Matt Turner 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ea44de6d8c93551be73d91045686b59a5aa42c25
Author: Francisco Jerez 
Date:   Sun Mar 13 16:25:57 2016 -0700

intel/compiler/fs: Switch liveness analysis to IR analysis framework

This involves wrapping fs_live_variables in a BRW_ANALYSIS object and
hooking it up to invalidate_analysis() so it's properly invalidated.
Seems like a lot of churn but it's fairly straightforward.  The
fs_visitor invalidate_ and calculate_live_intervals() methods are no
longer necessary after this change.

Reviewed-by: Matt Turner 
Part-of: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=bb8cfa6837fe7967cb9b02e32bd2d1aa37631c45
Author: Francisco Jerez 
Date:   

Mesa (master): 25 new commits

2019-12-16 Thread GitLab Mirror
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=4202cf8bf168229135173bcf67ddc99d74fe7d81
Author: Iago Toral Quiroga 
Date:   Mon Sep 16 14:30:03 2019 +0200

v3d: expose OES_geometry_shader

Reviewed-by: Alejandro Piñeiro 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ba7bc83dd57d96567e0fc53991482b693866ca6c
Author: Iago Toral Quiroga 
Date:   Mon Nov 11 11:46:41 2019 +0100

v3d: support precompiling geometry shaders

At present, this is only relevant for shader-db.

Reviewed-by: Alejandro Piñeiro 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=7cee56b1dfde82ae81850fbedc4afc778d911edd
Author: Iago Toral Quiroga 
Date:   Tue Nov 5 12:25:35 2019 +0100

v3d: disable lowering of indirect inputs

V3D can do indirect inputs so we don't need it. Also, the lowering
produces horrible if-ladder code that is particularly bad for geometry
shaders where inputs are always arrays and shader bodies usually have
a loop indexing into them.

This fixes a couple of geometry shader tests in CTS that would fail to
register allocate otherwise.

There are no changes in shader-db.

Reviewed-by: Alejandro Piñeiro 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a1b7c0844ddcbdc5ab773cbe2f6312f34111bdd9
Author: Iago Toral Quiroga 
Date:   Wed Oct 30 14:19:30 2019 +0100

v3d: fix primitive queries for geometry shaders

With geometry shaders the number of emitted primitived is decided
at run time, so we cannot precompute it in the CPU and we need to
use the PRIMITIVE_COUNTS_FEEDBACK commands to have the GPU provide
the number like we do for the number of primitives written to
transform feedback. This may have a performance impact though, since
it requires a sync wait for the draw to complete, so we only do
it when geometry shaders are present.

v2: remove '> 0' comparison for ponter type (Alejandro)

Reviewed-by: Alejandro Piñeiro 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6c7a2b69f8df5a9c0cb8c8f3b099694bbe1b0b53
Author: Iago Toral Quiroga 
Date:   Tue Oct 29 10:12:28 2019 +0100

v3d: handle writes to gl_Layer from geometry shaders

When geometry shaders write a value to gl_Layer that doesn't correspond to
an existing layer in the target framebuffer the rendering behavior is
undefined according to the spec, however, there are CTS tests that trigger
this scenario on purpose, probably to ensure that nothing terrible happens.

For V3D, this situation is problematic because the binner uses the layer
index to select the offset to write into the tile state data, and we only
allocate tile state for MAX2(num_layers, 1), so we want to make sure we
don't produce values that would lead to out of bounds writes. The simulator
has an assert to catch this, although we haven't observed issues in actual
hardware it is probably best to play safe.

Reviewed-by: Alejandro Piñeiro 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=45bc61add078b11e1809cf607e9c876329004d5d
Author: Iago Toral Quiroga 
Date:   Thu Oct 31 10:46:58 2019 +0100

v3d: move layer rendering to a separate helper

This helps with reducing nesting level after adding the loop
to handle layered rendering.

Reviewed-by: Alejandro Piñeiro 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=74a59fdc6e8c4f9c51454a6d1a5b8998083014b5
Author: Iago Toral Quiroga 
Date:   Tue Oct 29 10:27:23 2019 +0100

v3d: support rendering to multi-layered framebuffers

When doing layered rendering the binning stage will prepare per-tile
lists for each layer in the framebuffer, so we need to make sure
we allocate enough space for them .

We also need to emit the NUMBER_OF_LAYERS packet. This is required
even when the number of layers is only 1, otherwise the simulator
detects buffer overflows in the tile_state BO during some CTS test
cases involving layered FBOs.

When rendering, we need to emit commands for each layer of the
framebuffer separately and make sure we address the correct layers for
each one.

v2: fixed typo in comment (Alejandro)

Reviewed-by: Alejandro Piñeiro 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a0c94c70ee9aa74c7ff05acffc43c8e92b0c0e1e
Author: Iago Toral Quiroga 
Date:   Wed Oct 30 11:33:44 2019 +0100

v3d: do not limit new CL space allocations with branch to 4096 bytes

For layered rendering we need to emit per layer rendering commands
lists so we we can end up requiring a fairly large buffer for this
if the number of layers is large enough.

Reviewed-by: Alejandro Piñeiro 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=56ba6f42e22bd55d8f95c0cfc6e95357e49aa4d1
Author: Iago Toral Quiroga 
Date:   Tue Oct 29 09:32:05 2019 +0100

v3d: remove obsolete assertion

  

Mesa (master): 25 new commits

2019-11-19 Thread GitLab Mirror
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=614fba0ce1b267b365f8ee17f0ed017c35b20b1a
Author: Timothy Arceri 
Date:   Tue Nov 19 22:46:54 2019 +1100

gitlab-ci: update for arb_shading_language_include

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=530d3b29007f3bf5e8c91a6c34fdc666b9aa726f
Author: Timothy Arceri 
Date:   Tue Nov 19 22:22:59 2019 +1100

gitlab-ci: bump piglit checkout commit

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=af432be538e92b8b2a06e422544e5dddef55ebd9
Author: Timothy Arceri 
Date:   Wed Aug 14 10:29:01 2019 +1000

mesa: enable ARB_shading_language_include

Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/999

Reviewed-by: Witold Baryluk 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=49cdbba9f6bd59acf9d27911b1757a15778e218e
Author: Timothy Arceri 
Date:   Fri Aug 30 14:59:21 2019 +1000

mesa: implement glCompileShaderIncludeARB()

Reviewed-by: Witold Baryluk 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=bad2c77aa80959b06a424fa3dd7317872f45466d
Author: Timothy Arceri 
Date:   Mon Sep 2 12:35:52 2019 +1000

mesa: add shader include lookup support for relative paths

Reviewed-by: Witold Baryluk 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1201d3377ef8665797bf00839fd49a76e3e44101
Author: Timothy Arceri 
Date:   Mon Sep 2 12:31:17 2019 +1000

mesa: add support cursor support for relative path shader includes

This will allow us to continue searching the current path for
relative shader includes.

From the ARB_shading_language_include spec:

   "If it is quoted with double quotes in a previously included
   string, then the first search point will be the tree location
   where the previously included string had been found."

Reviewed-by: Witold Baryluk 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=db5197cec54e7926211acef2ff3b40344f01b4f9
Author: Timothy Arceri 
Date:   Wed Aug 21 16:14:02 2019 +1000

glsl: delay compilation skip if shader contains an include

If the shader contains an include when need to first run the
preprocessor before deciding if we can skip compilation based
on the shader cache.

Reviewed-by: Witold Baryluk 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=17df8f8b5d5491c1d70d35209f76966e1ccbe817
Author: Timothy Arceri 
Date:   Wed Aug 21 16:13:07 2019 +1000

glsl: add can_skip_compile() helper

We will reuse this in the following commit.

Reviewed-by: Witold Baryluk 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=5327b756bf3c9f3779a90900ac06c6bcb8976951
Author: Timothy Arceri 
Date:   Tue Aug 20 14:20:33 2019 +1000

glsl: error if #include used while extension is disabled

In other words make sure the shader does this:

Reviewed-by: Witold Baryluk 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=13a1426b97c2ff1e42f7455f1f9937fe956c17b2
Author: Timothy Arceri 
Date:   Wed Aug 14 21:17:55 2019 +1000

glsl: add preprocessor #include support

Reviewed-by: Witold Baryluk 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e0fd2fa6894d875854990a33e41d538f0cdea24c
Author: Timothy Arceri 
Date:   Thu Aug 15 12:48:25 2019 +1000

glsl: pass gl_context to glcpp_parser_create()

This is a small tidy up and will be useful in the following commit.

Reviewed-by: Witold Baryluk 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=67b32190f3c953c5b7091d76ddeff95c0cbfb439
Author: Timothy Arceri 
Date:   Wed Aug 14 14:24:31 2019 +1000

glsl: add ARB_shading_language_include support to #line

From the ARB_shading_language_include spec:

   "#line must have, after macro substitution, one of the following
forms:

   #line 
   #line  
   #line  ""

where  and  are constant integer
expressions and  is a valid string for a path supplied in the
#include directive. After processing this directive (including its
new-line), the implementation will behave as if it is compiling at
line number  and source string number 
or  path. Subsequent source strings will be numbered
sequentially, until another #line directive overrides that
numbering."

Reviewed-by: Witold Baryluk 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=2497c517176c2c9bd418d7d54eaef9aba0711727
Author: Timothy Arceri 
Date:   Tue Aug 27 14:24:22 2019 +1000

mesa: implement glDeleteNamedStringARB()

Reviewed-by: Pierre-Eric Pelloux-Prayer 
Reviewed-by: Witold Baryluk 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f2d01cac7ea3e696c6e61952443920aa14637e7d
Author: Timothy Arceri 
Date:   Tue Aug 27 14:22:30 2019 +1000

mesa: split _mesa_lookup_shader_include() in two

The new local function lookup_shader_include() wi

Mesa (master): 25 new commits

2019-08-22 Thread GitLab Mirror
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=2c5ba2ee6ea68aa3062156d1a4abfc3b2556775d
Author: Alyssa Rosenzweig 
Date:   Thu Aug 22 11:29:23 2019 -0700

panfrost: Implement gl_FragCoord correctly

Rather than passing through the transformed gl_Position, we can use the
hardware-level varying for this, which will correctly handle
gl_FragCoord.w

Signed-off-by: Alyssa Rosenzweig 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=eeebf5c2dfbf68e8db5a9926bba7ae55ed7c1b54
Author: Alyssa Rosenzweig 
Date:   Thu Aug 22 08:02:52 2019 -0700

panfrost: Remove vertex buffer offset from its size

The offset is added to the base address, so we need to subtract it from
the size to maintain the same end address and thus prevent a buffer
overflow:

   end_address = start_address + size

   start_address' = start_address + offset
   size' = size - offset

   end_address' = start_address' + size'
= (start_address + offset) + (size - offset)
= (start_address + size) + (offset - offset)
= start_address + size
= end_address

   QED.

Signed-off-by: Alyssa Rosenzweig 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f4678f3c620d52b55522494e306196e8047f8136
Author: Alyssa Rosenzweig 
Date:   Thu Aug 22 13:27:38 2019 -0700

pan/decode: Handle special varyings

We need a special path for special varyings so we parse them correctly
instead of throwing an error when they inevitably point to bad memory.

Signed-off-by: Alyssa Rosenzweig 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=caec0b32320de68c35a3f02dd2ef1e8f37de928c
Author: Alyssa Rosenzweig 
Date:   Thu Aug 22 13:09:00 2019 -0700

pan/decode: Remove size/stride divisibility check

The hardware doesn't care, and a lot of Panfrost code relies on an
oversized buffer. The important part is that (stride *
padded_num_vertices) is no greater than size, which we'll need to check
once we validate instancing.

Signed-off-by: Alyssa Rosenzweig 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ed464e05c88c941f61e79a1496b98c4a9f3d3324
Author: Alyssa Rosenzweig 
Date:   Thu Aug 22 13:07:01 2019 -0700

pan/decode: Decouple attribute/meta printing

They are independent fields, so the parser should reflect that.

Signed-off-by: Alyssa Rosenzweig 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ae84f167869baac1f69af5bbc4303244b0622000
Author: Alyssa Rosenzweig 
Date:   Thu Aug 22 11:30:13 2019 -0700

pan/decode: Print stub for uniforms

We don't need to dump the contents necessary, but having the stub with
the address is useful.

Signed-off-by: Alyssa Rosenzweig 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=26ed431ea9ca3f4bf05627a463ea947318da25bd
Author: Alyssa Rosenzweig 
Date:   Thu Aug 22 11:21:35 2019 -0700

pan/decode: Decode actual varying_meta address

I don't know who thought this mask was a good idea but unfortunately it
must have been me.

Signed-off-by: Alyssa Rosenzweig 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f48136e9c5a72f97f4035d64aae00d9dfc0cdb67
Author: Alyssa Rosenzweig 
Date:   Thu Aug 22 09:02:48 2019 -0700

pan/decode: Downgrade shader property mismatch to warning

If we permit more $whatever through than the shader needs, that's a bit
of a waste, but it isn't an error.

Signed-off-by: Alyssa Rosenzweig 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f38ce6ea8cd1dd4af4c698e98c32d93cbce92ae4
Author: Alyssa Rosenzweig 
Date:   Wed Aug 21 16:06:23 2019 -0700

pan/decode: Validate, but do not print, index buffer

We don't actually care about the *contents* of the index buffer, but we
would rather like to ensure it is present and of the correct size.

Signed-off-by: Alyssa Rosenzweig 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=cbbf75424a2fe6dc258781fe0ac9c1f4f6d0292e
Author: Alyssa Rosenzweig 
Date:   Wed Aug 21 14:57:23 2019 -0700

pan/decode: Validate mali_shader_meta stats

We can infer these stats in many cases from the disassembly, so we
should try to sanity check where we can. We may need to be fuzzy about
analysis, since analysis gives us a bound but we don't mind if it's not
used fully by the shader.

Signed-off-by: Alyssa Rosenzweig 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9b067d96f7b0ca6c11655ba49d472fde3f3a01be
Author: Alyssa Rosenzweig 
Date:   Wed Aug 21 14:28:36 2019 -0700

pan/decode: Disassemble before printing shader descriptor

This allows the shader descriptor to access the disassembled stats.

Signed-off-by: Alyssa Rosenzweig 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=5f9a1c74ae74a76e8bb03db787c5f99ad0770ea6
A

Mesa (master): 25 new commits

2019-01-24 Thread GitLab Mirror
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=281421e1bc1415f608514eb633c47d3f3a72e1eb
Author: Emil Velikov 
Date:   Wed Nov 14 14:18:25 2018 +

mapi: remove machinery handling CSV files

We haven't have one in years, so just drop the code.

Signed-off-by: Emil Velikov 
Reviewed-by: Erik Faye-Lund 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8a0012692a5d41e6e765c67804266d2a80b7e920
Author: Emil Velikov 
Date:   Wed Nov 21 05:21:58 2018 +

mapi: remove old, unused ES* generator code

As of earlier commit, everyone has switched to the new script for the ES
dispatch.

Signed-off-by: Emil Velikov 
Reviewed-by: Erik Faye-Lund 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a41214ca3ee5570f73f93d138d7741c2e482d6f8
Author: Emil Velikov 
Date:   Wed Nov 21 05:05:35 2018 +

mapi/es2api: remove no longer present entrypoints

With the previous scripts API from the following was incorrectly
exported. Drop them from the list, since they're no longer around.

GL_EXT_blend_func_extended
GL_EXT_texture_integer

Signed-off-by: Emil Velikov 
Reviewed-by: Erik Faye-Lund 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=05f8558b273c2d3f394a5269ba1e5ce7583bcfe7
Author: Emil Velikov 
Date:   Tue Nov 20 18:46:56 2018 +

mapi/es*api: remove GL_EXT_multi_draw_arrays entrypoints

Now we use the upstream XML file and a cleaner generator. Thus the
symbols are no longer exported and we can drop them from this list.

Signed-off-by: Emil Velikov 
Reviewed-by: Erik Faye-Lund 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=5661ce6c644f2c95bc2db67b2d356eea65c4b273
Author: Emil Velikov 
Date:   Tue Nov 20 18:45:32 2018 +

mapi/es*api: remove GL_OES_EGL_image entrypoints

As some point in the past we fixed the scripts so, these are no longer
exported. Drop them from the list.

Signed-off-by: Emil Velikov 
Reviewed-by: Erik Faye-Lund 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9f86f1da7c68b5b900cd6f60925610ff1225a72d
Author: Emil Velikov 
Date:   Fri Dec 14 13:14:29 2018 +

Revert "mapi/new: sort by slot number"

This reverts commit a1f5d9412cf7cacb3534635f6c2409fafbe6574e.

We no longer needed to sort - it was meant only to ease compare against
the old generated files.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=3bf08292d2278e06edc73a7a3e29c8f44c8dfa53
Author: Emil Velikov 
Date:   Tue Nov 20 17:44:43 2018 +

scons: wire the new generator for es1 and es2

Signed-off-by: Emil Velikov 
Reviewed-by: Erik Faye-Lund 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=0842bc879b34414de54be9a2299ea8cdb0ecde5e
Author: Emil Velikov 
Date:   Tue Nov 20 17:30:47 2018 +

meson: wire the new generator for es1 and es2

v2: use ${foo})_py naming (Dylan)
v3: use symbolic name for genCommon.py

Signed-off-by: Emil Velikov 
Reviewed-by: Erik Faye-Lund  (v2)

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=656845301d67d1726260a8b227f3e65ce3fcd0b1
Author: Emil Velikov 
Date:   Thu Nov 15 14:49:08 2018 +

autotools: wire the new generator for es1 and es2

The output produced functionally identical, with the following changes:
 - A cosmetic: swapped ABI compatible types [ GLclampf -> GLfloat, etc ]
 - B cosmetic: renamed parameters [ zNear -> n, etc ]
 - C dropped extension entrypoints - invalid/incorrect

To make things easier to validate, normalise both old/new headers run
the sed patterns A, B and C to both sets.

A
  s/\/GLfloat/g; s/\/GLfixed/g;
  s/\/void/g;

B
  s/\ \* / */g; s/\/target/g;
  s/\/p/g; s/\/d/g; s/\/modeA/g;
  s/\/program/g; s/\/shaders/g; s/\/eqn/g;
  s/\/data/g; s/\/data/g; s/\/buffer/g;
  s/\/mode/g; s/\/n/g; s/\/n/g; s/\/f/g;
  s/\/dpfail/g; s/\/dppass/g; s/\/index/g;
  s/\/target/g; s/\/target/g; s/\/index/g;
  s/\/sfactorRGB/g; s/\/dfactorRGB/g;
  s/\/sfactorAlpha/g; s/\/dfactorAlpha/g;
  s/\/mode/g; s/\/instancecount/g;
  s/\/t/g; s/\/b/g; s/\/l/g; s/\/r/g;
  s/\/v0/g; s/\/v1/g; s/\/v2/g; s/\/v3/g;
  s/\/mode/g; s/\/dst/g; 
s/\/bindingindex/g;
  s/\/internalformat/g; s/\/bufsize/g;

C
glMultiDrawArraysEXT
glMultiDrawElementsEXT

glBindFragDataLocationEXT

glGetTexParameterIivEXT
glGetTexParameterIuivEXT
glTexParameterIivEXT
glTexParameterIuivEXT

v2:
 - gl_dispatch_stub declarations are addressed with previous patch
 - the public_entries table is no longer generated

Signed-off-by: Emil Velikov 
Reviewed-by: Erik Faye-Lund 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=389bc2bc6e6410b1b4fc1c470a5c2fce871f7b63
Author: Emi

Mesa (master): 25 new commits

2018-12-07 Thread GitLab Mirror
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=cc6a5e937b45bc54a990f8b25b8bc57de35feae9
Author: Eric Anholt 
Date:   Fri Dec 7 16:51:12 2018 -0800

shader-packing

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=09ad0d870c959e4d6a2ffe225baaadebe55ad461
Author: Eric Anholt 
Date:   Fri Dec 7 16:49:41 2018 -0800

tfu

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f1d98204c34d36876e05e1d3f2242296ccec19e3
Author: Eric Anholt 
Date:   Fri Dec 7 10:34:40 2018 -0800

v3d: Fix a leak of the disassembled instruction string during debug dumps.

Fixes: ade416d02369 ("broadcom: Add VC5 NIR compiler.")

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=7f8d8b7d27868037a146f7fca04fef56b29bb85e
Author: Eric Anholt 
Date:   Fri Dec 7 10:31:27 2018 -0800

vc4: Fix a leak of the transfer helper on screen destroy.

Fixes: d009463a6549 ("vc4: Switch to using u_transfer_helper for MSAA 
maps.")

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=3bd73d31a862fd1e198a7c83ec656a4a376c593a
Author: Eric Anholt 
Date:   Fri Dec 7 10:30:09 2018 -0800

v3d: Fix a leak of the transfer helper on screen destroy.

Fixes: 7a30517cce8f ("broadcom/vc5: Start adding support for rendering to 
Z32F_S8X24_UINT.")

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=bad95bb13c7f857df0d9767040dd28d4187715c2
Author: Eric Anholt 
Date:   Tue Dec 4 15:03:15 2018 -0800

v3d: Add VIR dumping of TMU config p0/p1.

I had a bit of it for V3D 3.x, but didn't update it for 4.x.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1fc78ff3f1774d6c58f78e184f01b123cf854284
Author: Eric Anholt 
Date:   Tue Dec 4 15:01:58 2018 -0800

v3d: Simplify VIR uniform dumping using a temporary.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=5932575299d009665d382c5fd3d7425e12057320
Author: Eric Anholt 
Date:   Mon Dec 3 08:52:36 2018 -0800

v3d: Garbage collect unused uniforms code.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=62a3192112f07ee002b735b7f5e635b17e4e7a92
Author: Eric Anholt 
Date:   Tue Dec 4 14:25:22 2018 -0800

v3d: Split most of TEXTURE_SHADER_STATE setup out of sampler views.

For shader image load/store, we want most of this logic to be shared.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8cb1f3bab7741d7c4a862921ad3a5a855840ed91
Author: Eric Anholt 
Date:   Tue Dec 4 14:32:27 2018 -0800

v3d: Avoid confusing auto-indenting in TEXTURE_SHADER_STATE packing

Having "v3dx_pack() {" under each #if branch would confuse emacs's
indenter.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ee9b758053760ebaee7b5950be358de461a1cd8d
Author: Eric Anholt 
Date:   Tue Dec 4 14:18:45 2018 -0800

v3d: Fix handling of texture first_layer offsets for 3D textures.

I think this bug predated adding v3d_layer_offset().  Noticed during an
unrelated refactor.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=acecee4c2db48fb36bce1170d8747c7345ba3541
Author: Eric Anholt 
Date:   Mon Dec 3 08:51:29 2018 -0800

v3d: Return the right gl_SampleMaskIn[] value.

It's supposed to be the dispatched sample mask for this pixel, not the GL
state's sample mask.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=68701110517eb67ee794f2eef10c34e46ce83394
Author: Eric Anholt 
Date:   Mon Dec 3 08:43:46 2018 -0800

v3d: Fix a comment typo

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ca0e4ae4bc00040809d13e0817c0926c3853f0bf
Author: Eric Anholt 
Date:   Mon Dec 3 08:35:50 2018 -0800

v3d: Convert to using nir_src_as_uint() from const_value derefs.

Follows 16870de8a0aa ("nir: Use nir_src_is_const and nir_src_as_* in core
code") to clean up v3d.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=503b55c6224f32304852b54d953d9e7d5d144708
Author: Eric Anholt 
Date:   Wed Dec 5 17:10:15 2018 -0800

v3d: Don't forget to flush writes to UBOs.

If someone did TF into a UBO, we might have left the TF job un-flushed at
the point of reading.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=504d06e4c1c5664c1e208179a43adbbd27fd4522
Author: Eric Anholt 
Date:   Tue Dec 4 13:48:10 2018 -0800

v3d: Make an array for frag/vert texture state in the context.

This simplifies a bunch of our texture handling, while introducing the
slots necessary for adding new shader stages.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d1965344ac26e250f696ff15f6dff8aacbd1d6db
Author: Eric Anholt 
Date:   Tue Dec 4 13:36:48 2018 -0800

v3d: Re-use the wrap mode uniform on V3D 3.3.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e94d034a38b9993d0ea898dec550cf52541da8f1
Author: Eric Anholt 
Date:   Fri Dec 7 12:36:55 2018 -0800

v3d: Put default vertex attribute values into the state uploader as well.

The default attributes are long-lived (the state struct is cached), a

Mesa (master): 25 new commits

2018-09-25 Thread GitLab Mirror
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=0d495bec25bd7584de4e988c2b4528c1996bc1d0
Author: Axel Davy 
Date:   Sun Sep 23 16:18:55 2018 +0200

radeonsi: NaN should pass kill_if

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=105333
Fixes: https://github.com/iXit/Mesa-3D/issues/314

For this application, NaN is passed to KILL_IF and is expected to
pass.

v2: Explain in the code why UGE is used.

Signed-off-by: Axel Davy 
Reviewed-by: Marek Olšák 

CC: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=46814e771a8eabc427e7d5bbaa8d5cb4ca57ee03
Author: Axel Davy 
Date:   Sat Sep 22 11:09:11 2018 +0200

st/nine: Do not mark both ff vs and ps updated

Previously if only ff vs or only ff ps was used,
the constants for both were marked as updated,
while only the constants of the used ff shader
were updated.

Now that NINE_STATE_FF_VS and
NINE_STATE_FF_PS do not intersect anymore,
we can correctly mark the correct set of constant
as updated.

Fixes: https://github.com/iXit/Mesa-3D/issues/319

Signed-off-by: Axel Davy 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8e0526555d56cf91e6af518d71da176e1a7b19c2
Author: Axel Davy 
Date:   Sat Sep 22 11:05:19 2018 +0200

st/nine: Split NINE_STATE_FF_OTHER

NINE_STATE_FF_OTHER was mostly ff vs states.

Rename it to NINE_STATE_FF_VS_OTHER and
move common states with ps to
NINE_STATE_FF_PS_CONSTS (renamed from
NINE_STATE_FF_PSSTAGES).

Signed-off-by: Axel Davy 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=5f7a41c33b233e315e1214a7692808def9f105f1
Author: Axel Davy 
Date:   Sun Sep 23 18:21:45 2018 +0200

st/nine: Add dummy ff shader state

Some states only affect the ff shader,
not its constants.
Currently we don't check anything and
always recompute the ff shader key.

However we do check for NINE_STATE_FF_OTHER
and if set we reupload some constants.

Thus for those states which had NINE_STATE_FF_OTHER
set but didn't need it,
replace by a dummy ff shader state (which is
easier to understand for an external reader than
just setting 0 and more future proof).

Signed-off-by: Axel Davy 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f6bf1d2db081bc78aa256e84dbf11f61084a22b9
Author: Axel Davy 
Date:   Sun Sep 23 18:20:59 2018 +0200

st/nine: Mark pointsize states as ff states

The pointsize states were missing the ff
NINE_STATE_FF_OTHER flag, and thus might
miss state updates when using ff.

Fixes some wine tests.

Signed-off-by: Axel Davy 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=89beea100fec4ec9817eccd9caf15044f58e53ae
Author: Axel Davy 
Date:   Sun Apr 8 14:33:45 2018 +0200

st/nine: Minor refactor of a few NINE_STATE_* flags

Rename NINE_STATE_FOG_SHADER,
NINE_STATE_POINTSIZE_SHADER and NINE_STATE_PS1X_SHADER
into
NINE_STATE_VS_PARAMS_MISC and NINE_STATE_PS_PARAMS_MISC.

The behaviour is unchanged, except one minor change:
D3DRS_FOGTABLEMODE doesn't need to affect VS.

Signed-off-by: Axel Davy 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=7ae2509ce06d9d3da44de3f25afc7370e2330030
Author: Axel Davy 
Date:   Sun Sep 23 18:24:18 2018 +0200

st/nine: Increase maximum number of temp registers

With some test app I hit the limit.
As we allocate on demand (up to the maximum),
it is free to increase the limit.

Signed-off-by: Axel Davy 
CC: 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=dc4b53e129150e85903214fc7cdd3cd437843392
Author: Axel Davy 
Date:   Sun Sep 16 21:59:55 2018 +0200

st/nine: Lock the entire buffer in some cases.

Previously we had already found that for
MANAGED buffers the buffer started dirty
(which meant all writes out of bound
before the first draw call using the
buffer have to be taken into account).

Possibly it is the same for the other types of buffers.
For now always lock the entire buffer (starting from the offset)
for these (except for DYNAMIC buffers, which might hurt
performance too much).

Fixes: https://github.com/iXit/Mesa-3D/issues/301

Signed-off-by: Axel Davy 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=0eeb583650c64e789e0bfa7b3194310c5c44ba4f
Author: Axel Davy 
Date:   Sat Sep 15 21:53:25 2018 +0200

st/nine: Don't call SetCursor until a cursor is set

The previous code was ignoring the input
until a cursor is set inside d3d
(with SetCursorProperties), as expected
by wine tests.

However it did still make a call to ID3DPresent_SetCursor,
which would result into a SetCursor(NULL) call, thus
hidding any cursor set outside d3d, which we shouldn't do.

Add comment about not avoiding redunda

Mesa (master): 25 new commits

2017-10-12 Thread Jason Ekstrand
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=79d403417cacd2728916e32ae55f4fc2a018515c
Author: Jason Ekstrand 
Date:   Fri Sep 29 12:22:48 2017 -0700

intel/cs: Make thread_local_id a regular builtin param

This is a lot more natural than special casing it all over the place.
We still have to do a bit of special-casing in assign_constant_locations
but it's not special-cased quite as bad as it was before.

Reviewed-by: Jordan Justen 
Reviewed-by: Kenneth Graunke 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8d90e2883954eb7022cf8fc98be3773cc5513e7b
Author: Jason Ekstrand 
Date:   Fri Sep 29 11:30:25 2017 -0700

intel/compiler: Allocate pull_param in assign_constant_locations

Now that everything is nicely ralloc'd, we can allocate the pull_param
array in assign_constant_locations instead of higher up.  We can also
re-allocate the param array so that it's exactly the needed size.  This
should save us some memory because we're not allocating the total needed
param space for both push and pull.

Reviewed-by: Jordan Justen 
Reviewed-by: Kenneth Graunke 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=29737eac985cf028b19d977cb8fa0d7320cf91cf
Author: Jason Ekstrand 
Date:   Thu Sep 28 21:45:41 2017 -0700

intel: Allocate prog_data::[pull_]param deeper inside the compiler

Now that we're always growing the param array as-needed, we can
allocate the param array in common code and stop repeating the
allocation everywere.  In order to keep things sane, we ralloc the
[pull_]param array off of the compile context and then steal it back
to a NULL context later.  This doesn't get us all the way to where
prog_data::[pull_]param is purely an out parameter of the back-end
compiler but it gets us a lot closer.

Reviewed-by: Jordan Justen 
Reviewed-by: Kenneth Graunke 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c3d54d03757fcb656cc4839a2c7978d97f75508d
Author: Jason Ekstrand 
Date:   Wed Aug 16 16:50:46 2017 -0700

ralloc: Allow reparenting to a NULL context

Reviewed-by: Tapani Pälli 
Reviewed-by: Ian Romanick 
Reviewed-by: Jordan Justen 
Reviewed-by: Kenneth Graunke 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=2e317a4b6d77ab078bdc9b21765f6051c4577c5e
Author: Jason Ekstrand 
Date:   Fri Sep 29 11:18:04 2017 -0700

anv/pipeline: Refactor setup of the prog_data::param array

Now that the only thing we put in the array up-front are client push
constants, we can simplify anv_pipeline_compile a bit.

Reviewed-by: Jordan Justen 
Reviewed-by: Kenneth Graunke 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6b31229592df76eefc1aa41d5b936ad2bb6b5598
Author: Jason Ekstrand 
Date:   Fri Sep 29 11:10:22 2017 -0700

anv/pipeline: Grow the param array for images

Before, we were calculating up-front and then filling in later.  Now we
just grow as needed in anv_nir_apply_pipeline_layout.

Reviewed-by: Jordan Justen 
Reviewed-by: Kenneth Graunke 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=63c938fd1838d372674db70b7ff0199594a85cd0
Author: Jason Ekstrand 
Date:   Fri Sep 29 11:09:04 2017 -0700

anv/pipeline: Whack nir->num_uniforms to MAX_PUSH_CONSTANT_SIZE

This way any image uniforms end up having locations higher than
MAX_PUSH_CONSTANT_SIZE.  There's no bug here at the moment, but this
consistency will make the next commit easier.  Also, because
nir_apply_pipeline_layout properly increments nir->num_uniforms when
it expands the param array, we no longer need to stomp it to match
prog_data::nr_params because it already does.

Reviewed-by: Jordan Justen 
Reviewed-by: Kenneth Graunke 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=4dfb8b3416e2c7c069ac11736362e9dc3860f72c
Author: Jason Ekstrand 
Date:   Fri Sep 29 10:50:07 2017 -0700

intel/vs: Grow the param array for clip planes

Instead of requiring the caller of brw_compile_vs to figure it out, just
grow the param array on-demand.

Reviewed-by: Jordan Justen 
Reviewed-by: Kenneth Graunke 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6bcc5c0c75226bb89f35d7529de11182051c729e
Author: Jason Ekstrand 
Date:   Fri Sep 29 10:37:40 2017 -0700

intel/cs: Grow prog_data::param on-demand for thread_local_id_index

Instead of making the caller of brw_compile_cs add something to the
param array for thread_local_id_index, just add it on-demand in
brw_nir_intrinsics and grow the array.  This is now safe to do because
everyone is now using ralloc for prog_data::param.

Reviewed-by: Jordan Justen 
Reviewed-by: Kenneth Graunke 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=b1d1b7222acfe45e447d1708d60b3ff98ca5a9a7
Author: Jason Ekstrand 
Date:   Fri Oct 6 10:08:11 2017 -0700

  

Mesa (master): 25 new commits

2017-08-21 Thread Matt Turner
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a98b1a8922fa6990d0ab60fc8ab6c9286a4b
Author: Matt Turner 
Date:   Wed Aug 2 23:20:00 2017 -0700

i965: Optimize reading the destination type

brw_hw_type_to_reg_type() needs to know only whether the file is
BRW_IMMEDIATE_VALUE or not, which is not a valid file for the
destination. gcc and clang will evaluate __builtin_strcmp() at compile
time, so we can use it to pass a constant file for the destination.

   textdata bss dec hex filename
7816214  346248  420496 8582958  82f72e i965_dri.so before
7816070  346248  420496 8582814  82f69e i965_dri.so after

Reviewed-by: Scott D Phillips 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=91ef9490549567968a51bd8c68ebb60e47ebcdcb
Author: Matt Turner 
Date:   Wed Aug 2 23:20:39 2017 -0700

i965: Mark brw_hw_type_to_reg_type() as a pure function

   textdata bss dec hex filename
7816886  346248  420496 8583630  82f9ce i965_dri.so before
7816214  346248  420496 8582958  82f72e i965_dri.so after

Reviewed-by: Scott D Phillips 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e07fe890353dce5fbefb0e03856f7faabfac06cb
Author: Matt Turner 
Date:   Wed Jul 26 21:13:03 2017 -0700

i965: Hide the register type hardware encodings

So we stop mixing them with the logical enum.

Reviewed-by: Scott D Phillips 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=4fab67a4415cbc577a8f94d4b5f7668bec6df5e1
Author: Matt Turner 
Date:   Wed Jul 26 21:08:20 2017 -0700

i965: Stop using hardware register types directly

Reviewed-by: Scott D Phillips 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c746f1c88820485afbf62774120d58ddd317f508
Author: Matt Turner 
Date:   Wed Aug 2 13:41:32 2017 -0700

i965: Add brw_hw_reg_type_to_letters() and use it in brw_disasm.c

Reviewed-by: Scott D Phillips 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6a2471b5014f5ecc6b96a1a9c228f9ee3d0fdb98
Author: Matt Turner 
Date:   Wed Jul 26 17:31:36 2017 -0700

i965: Move brw_reg_type_letters() as well

And add "to_" to the name for consistency with the other functions in
this file.

Reviewed-by: Scott D Phillips 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1cb0a7941b27d368bc973d22b3a4db091a1852e4
Author: Matt Turner 
Date:   Wed Jul 26 17:59:10 2017 -0700

i965: Switch to using the logical register types

Reviewed-by: Scott D Phillips 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=cb2cd462b1c66b9bace4d061bf4ff960419e83d9
Author: Matt Turner 
Date:   Wed Jul 26 16:51:58 2017 -0700

i965: Add functions to abstract access to register types

Previously the brw_inst{,_set}_{dst,src0,src1}_reg_type() functions
provided access to the hardware encodings for the register types. We
often mixed these with the logical BRW_REGISTER_TYPE_* enums (which
themselves used to be the hardware format!) with bad results.

With that functionality now available with the hw_ versions (see
previous commit), we now add functions that take the logical
BRW_REGISTER_TYPE_* enums and convert into the hardware format and vice
versa. To do the conversion we also have to provide the file.

Note the asymmetry between the two functions: the new getter reads the
file from the instruction word, and to ensure that is always set the
setter writes both the file and the type.

Reviewed-by: Scott D Phillips 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9fb8323328684bd7fe4e8c71c7415f51acf25e5b
Author: Matt Turner 
Date:   Wed Jul 26 14:25:54 2017 -0700

i965: Rename brw_inst's functions that access the register type

Put hw_ in the name so that it's clear these are the hardware encodings.

Reviewed-by: Scott D Phillips 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=3e379af492f0f4c05061b8251e7cf18ed438056c
Author: Matt Turner 
Date:   Wed Jul 26 16:56:10 2017 -0700

i965: Index brw_hw_reg_type_to_size()'s table by logical type

I'll be transitioning everything to use the logical types.

Reviewed-by: Scott D Phillips 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c1ac1a3d257460c2706e91ff933679d7c8889294
Author: Matt Turner 
Date:   Wed Jul 26 17:50:22 2017 -0700

i965: Add a brw_hw_type_to_reg_type() function

Will be used in later commits.

Reviewed-by: Scott D Phillips 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=dbe7dd13dd46657da7fdd864c916d9d6b08c96bb
Author: Matt Turner 
Date:   Wed Jul 26 17:50:05 2017 -0700

i965: Use a common table to translate logical to hardware types

Reviewed-by: Scott D Phillips 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=bfcc9aa829438675aed9d9e227d88d325932efe0
Author: Ma

Mesa (master): 25 new commits

2017-03-16 Thread Iago Toral Quiroga
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ca34a3125f671a63b390e19a2c170c0380a228d7
Author: Iago Toral Quiroga 
Date:   Thu Mar 9 14:37:26 2017 +0100

anv: improve error reporting when creating pipelines

Specifically, report 'out of memory' errors that might have happened while
emitting the pipeline's batch.

Reviewed-by: Topi Pohjolainen 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1d7468311d99c2da666fa98514592edf923dd195
Author: Iago Toral Quiroga 
Date:   Thu Mar 9 11:34:22 2017 +0100

anv: handle errors in emit_binding_table() and emit_samplers()

These can fail to allocate device memory, however, the driver can recover
from this error by allocating a new binding table block and trying again.

v2:
  - Instead of tracking the errors in these functions and making callers
reset the batch's status before attempting to allocate a new block
for the binding table, simply make callers responsible for setting
the error status if they fail to allocate memory during the second
attempt (Jason).

Reviewed-by: Topi Pohjolainen 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=dd8348c8be013c40bf1f1838be2dfa5e654bc372
Author: Iago Toral Quiroga 
Date:   Mon Mar 6 12:28:44 2017 +0100

anv: handle errors while allocating new binding table blocks

Also, we had a couple of instances in flush_descriptor_sets() were
we were returning a VkResult directly upon error, but the return
value of this function is not a VkResult but a uint32_t dirty mask,
so simply return 0 in these cases which reduces the amount of
work the driver will do after the error has been raised.

Reviewed-by: Topi Pohjolainen 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=be52f9693acb6055f62548e838348c584bbd08d7
Author: Iago Toral Quiroga 
Date:   Thu Mar 9 11:49:01 2017 +0100

anv/blorp: make anv_cmd_buffer_alloc_blorp_binding_table() return a VkResult

Instead of asserting inside the function, and then use use that information
to return early from its callers upon failure.

v2:
  - Make sure that clear_color_attachment() and
clear_depth_stencil_attachment() get the VkResult as well so they
avoid executing the batch if an error happened. (Topi)

Reviewed-by: Topi Pohjolainen 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a578b06d7bd6d1bb075bc9b8b04af97118bee18f
Author: Iago Toral Quiroga 
Date:   Thu Mar 9 10:44:13 2017 +0100

anv/device: assert that commands submitted to a queue are not bogus

Any errors that may have happened during the command buffer recording are
reported by vkEndCommandBuffer() and it is the application's reponsibility
to not submit broken commands to a queue.

Reviewed-by: Topi Pohjolainen 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a752c4ecdaa2084a4335993947512cd0eaa79046
Author: Iago Toral Quiroga 
Date:   Mon Mar 6 12:16:05 2017 +0100

anv/cmd_buffer: skip vkCmdExecuteCommands() on broken command buffers

v2: Assert on secondary commands, applications should've called
vkEndCommandBuffer() and received an error for them before (Jason)

Reviewed-by: Topi Pohjolainen 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=801493051e8593971ebdea52c78e21e694aa246b
Author: Iago Toral Quiroga 
Date:   Mon Mar 6 12:15:06 2017 +0100

anv/cmd_buffer: skip vkCmdDispatch() on broken command buffers

Reviewed-by: Topi Pohjolainen 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=18ec3fa2a996de8fcdbe3fbad717d8ba0b2e95f9
Author: Iago Toral Quiroga 
Date:   Mon Mar 6 11:12:31 2017 +0100

anv/cmd_buffer: skip vkCmdDraw*() on broken command buffers

Reviewed-by: Topi Pohjolainen 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=fb9d563fb9b6e63a79dc4b8aa1faee58faec4f5a
Author: Iago Toral Quiroga 
Date:   Mon Mar 6 12:04:19 2017 +0100

anv: handle memory allocation errors during queue submissions

Reviewed-by: Topi Pohjolainen 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c04dbd6b3e8b13fbf89338c79bccf4c06e6ff5aa
Author: Iago Toral Quiroga 
Date:   Fri Mar 3 11:31:14 2017 +0100

anv/cmd_buffer: handle out of memory during vkCmdPushConstants

Fixes:
dEQP-VK.api.out_of_host_memory.cmd_push_constants

Reviewed-by: Topi Pohjolainen 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=94a4f0c255b5f12a42928fd9ee49f07e14c1f860
Author: Iago Toral Quiroga 
Date:   Wed Mar 8 13:19:57 2017 +0100

anv/cmd_buffer: handle allocation errors during vkCmdBeginRenderPass()

Fixes:
dEQP-VK.api.out_of_host_memory.cmd_begin_render_pass

Reviewed-by: Topi Pohjolainen 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d823f381a5bdac721ca7ce142ed8aeb55fc2bc0c
Author: Iago Toral Quiroga 
Date:   Wed Mar 8 13:18:52 2017 +0100


Mesa (master): 25 new commits

2017-03-15 Thread Timothy Arceri
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c83562ccaa5f4bd42f4f59c519b48faeb295e354
Author: Marek Olšák 
Date:   Sun Feb 5 01:20:51 2017 +0100

gallium: implement the backend of threaded GL dispatch

Acked-by: Timothy Arceri 
Tested-by: Dieter Nützel 
Tested-by: Mike Lothian 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=93bdad3253cfa353cadf711c70f39e9baf09
Author: Gregory Hainaut 
Date:   Sun Feb 12 15:21:47 2017 +0100

mesa/glthread: restore the dispatch table when incompatible gl calls are 
detected

While a context only has a single glthread, the context itself can be
attached to several threads. Therefore the dispatch table must be
updated in all threads before the destruction of glthread. In others
words, glthread can only be destroyed safely when the context is deleted.

Fixes remaining crashes in the glx-multithread-makecurrent* tests.

V2: (Timothy Arceri) updated gl_API.dtd marshal_fail description.

Signed-off-by: Gregory Hainaut 
Acked-by: Timothy Arceri 
Acked-by: Marek Olšák 
Tested-by: Dieter Nützel 
Tested-by: Mike Lothian 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=70e715eea618f31a1b84a99b063c371af3513754
Author: Gregory Hainaut 
Date:   Mon Feb 13 19:14:28 2017 +0100

mesa/glthread: don't set a dispatch table if we aren't the owner

Fix crashes when glxMakeCurrent is called.

Signed-off-by: Gregory Hainaut 
Signed-off-by: Marek Olšák 
Acked-by: Timothy Arceri 
Tested-by: Dieter Nützel 
Tested-by: Mike Lothian 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=012bfebc0779bd0eed10ccbdec2edb874992d0dd
Author: Eric Anholt 
Date:   Mon Mar 4 10:30:15 2013 -0800

mesa: Track the current vertex/element array buffers for glthread.

We want to support glthread on GLES contexts with reasonable apps, and on
desktop for apps that use VBOs but haven't completely moved to core GL.
To do so, we have to deal with the "the user may or may not pass user
pointers to draw calls" problem.

Acked-by: Timothy Arceri 
Acked-by: Marek Olšák 
Tested-by: Dieter Nützel 
Tested-by: Mike Lothian 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=238d027ed6d11f7ced80e4c7a43ca62293914781
Author: Eric Anholt 
Date:   Mon Mar 4 09:47:40 2013 -0800

mesa: Disable glthread when glBegin() is called.

glBegin() swaps dispatch tables, and we don't have any code in place for
handling that in glthread (which also messes with dispatch tables), and I
don't particularly care to at this point.

Acked-by: Timothy Arceri 
Acked-by: Marek Olšák 
Tested-by: Dieter Nützel 
Tested-by: Mike Lothian 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=cd1c003b18353c220b1b81dcecc9cab2996ce608
Author: Eric Anholt 
Date:   Thu Feb 28 18:15:58 2013 -0800

mesa: Add an attribute for conditions to turn off threading.

The threading for GL core is in place, but there are so few applications
actually using a core GL context that it would be nice to extend support
back.  However, some of the features of compat GL (particularly user
vertex arrays) would be so expensive to track state for that we want to be
able to disable threading when we discover that the app is using them.

Acked-by: Timothy Arceri 
Acked-by: Marek Olšák 
Tested-by: Dieter Nützel 
Tested-by: Mike Lothian 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=43d4f7a227eaa01ea4be32e598682abc912e8e83
Author: Eric Anholt 
Date:   Wed Feb 27 14:28:16 2013 -0800

mesa: Add support for asynchronous glDraw* on GL core.

Acked-by: Timothy Arceri 
Acked-by: Marek Olšák 
Tested-by: Dieter Nützel 
Tested-by: Mike Lothian 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=b18755a457996cc4e7d9ca9d6beea9314de2d005
Author: Eric Anholt 
Date:   Wed Feb 27 13:37:14 2013 -0800

mesa: Add support for NULL arguments like in glBufferData() in marshalling.

This will let us support things like glBufferData() that should be
asynchronous.

Acked-by: Timothy Arceri 
Acked-by: Marek Olšák 
Tested-by: Dieter Nützel 
Tested-by: Mike Lothian 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=47f819d3cb89ab90914181e3c61744ac1f16e056
Author: Eric Anholt 
Date:   Fri Feb 15 16:33:33 2013 -0800

mesa: Statically allocate glthread command buffer in the batch struct.

This avoids an extra pointer dereference in the marshalling functions,
which, with the instruction count doing in the low 30s, could actually
matter for main-thread performance.

Acked-by: Timothy Arceri 
Acked-by: Marek Olšák 
Tested-by: Dieter Nützel 
Tested-by: Mike Lothian 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1d6b71c5c6264f9cc0f7ae7c35d27b5c88f3f8bf
Author: Eric Anholt 
Date:   Thu De

Mesa (master): 25 new commits

2017-03-13 Thread Emil Velikov
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9aebdb5d082ec640fe8a14704201952bddb50a88
Author: Emil Velikov 
Date:   Wed Mar 8 23:46:06 2017 +

configure.ac: do not require the i965 driver for ANV

As of last few commits we have the two split, thus we no longer require
the i965 in order to have the ANV driver.

Even though ANV does not link against libdrm nor libdrm_intel, we still
require those as dependencies due to the headers they provide.

Signed-off-by: Emil Velikov 
Reviewed-by: Jason Ekstrand 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ee8044fd332cacff80e4afb949fe79e3733375d1
Author: Jason Ekstrand 
Date:   Wed Mar 1 21:11:51 2017 -0800

intel/vulkan: Get rid of recursive make

v2 [Emil Velikov]
 - Various fixes and initial stab at the Android build.
 - Keep the generation rules/EXTRA_DIST outside the conditional

Reviewed-by: Jason Ekstrand 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=7f9bbcfb7ba990ca42483dd9e985a543d01ea225
Author: Jason Ekstrand 
Date:   Wed Mar 1 13:26:40 2017 -0800

intel/tools: Use a makefile included from intel/Makefile.am

Reviewed-by: Lionel Landwerlin 
Reviewed-by: Emil Velikov 
Reviewed-by: Jason Ekstrand 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=aa09c9552c2c7c0f443e22d2151d5e3ce97452e8
Author: Emil Velikov 
Date:   Tue Mar 7 15:07:49 2017 +

intel/compiler: whitespace cleanups

Signed-off-by: Emil Velikov 
Reviewed-by: Jason Ekstrand 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=bdc5036464b40a76115f7c3654043bb1155bd705
Author: Emil Velikov 
Date:   Tue Mar 7 16:13:42 2017 +

intel/compiler: link all tests again gtest, even test_eu_compact"

At the moment all the tests but test_eu_compact are actual C++ gtests.
To simplify things, we can move the gtest.la to the common TEST_LIBS.
As we're here, we can rename change the test extension [to .cpp] to
avoid using the confusing dummy.cpp.

Add a nice comment in the makefile for posterity.

Signed-off-by: Emil Velikov 
Reviewed-by: Jason Ekstrand 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f282ace67862c0633d0a8135e4808867740d0d39
Author: Emil Velikov 
Date:   Tue Mar 7 15:57:27 2017 +

i965: remove i965_symbols_test reference from .gitignore

The test/binary was removed back in 2012. With that one gone, we can
drop the .gitignore file all together.

Cc: Eric Anholt 
Fixes: c8850394423 ("i965: Drop the missing symbols link test.")
Signed-off-by: Emil Velikov 
Reviewed-by: Jason Ekstrand 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=700bebb958e93f4d472c383de62ced9db8e64bec
Author: Jason Ekstrand 
Date:   Tue Feb 28 09:10:43 2017 -0800

i965: Move the back-end compiler to src/intel/compiler

Mostly a dummy git mv with a couple of noticable parts:
 - With the earlier header cleanups, nothing in src/intel depends
files from src/mesa/drivers/dri/i965/
 - Both Autoconf and Android builds are addressed. Thanks to Mauro and
Tapani for the fixups in the latter
 - brw_util.[ch] is not really compiler specific, so it's moved to i965.

v2:
 - move brw_eu_defines.h instead of brw_defines.h
 - remove no-longer applicable includes
 - add missing vulkan/ prefix in the Android build (thanks Tapani)

v3:
 - don't list brw_defines.h in src/intel/Makefile.sources (Jason)
 - rebase on top of the oa patches

[Emil Velikov: commit message, various small fixes througout]
Signed-off-by: Emil Velikov 
Reviewed-by: Jason Ekstrand 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d0d4a5f43b4dd79bd7bfff7c7deaade10bfebf7c
Author: Emil Velikov 
Date:   Thu Mar 9 00:44:29 2017 +

i965: split EU defines to brw_eu_defines.h

Split out the EU defines from the 'generic' ones, as the former are more
compiler oriented.

With a later commit we'll move brw_eu_defines.h alongside the compiler
infra to src/intel/. Pulling all the defines in there seems overzealous.

Some defines are used by both i965 and the i965 compiler. Those are
moved to brw_eu_defines.h, and annotated accordingly. The i965 users
were updated to have the extre include to indicate that.

With future work we might provide a better, split but for now this seems
reasonable.

Cc: Kenneth Graunke 
Signed-off-by: Emil Velikov 
Reviewed-by: Jason Ekstrand 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a72ac981605d34be5b9da3d9ee8e43b81c5a5296
Author: Emil Velikov 
Date:   Thu Mar 9 17:45:19 2017 +

util/bitscan: use correct signature for ffs/ffsll

Otherwise we'll get errors such as

error: conflicting types for ‘ffs’
error: conflicting types for ‘ffsll’

We might want to improve the heuristics

Mesa (master): 25 new commits

2017-03-01 Thread Jason Ekstrand
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d5b355ce5fd6dbff61f1f471c38aa62db9d621c4
Author: Jason Ekstrand 
Date:   Wed Mar 1 11:20:25 2017 -0800

i965: Move intel_debug.h to intel/common/gen_debug.h

This is shared between the Vulkan and GL drivers as it's a requirement
of the back-end compiler.  However, it doesn't really belong in the
compiler.  We rename the file to match the prefix of the other stuff in
common and because libdrm defines an intel_debug.h and this avoids a
pile of possible name conflicts.

Reviewed-by: Anuj Phogat 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8048c1953c97de75ccbe33d719ca81f67a5ba255
Author: Jason Ekstrand 
Date:   Wed Mar 1 08:58:43 2017 -0800

i965: Reduce cross-pollination between the DRI driver and compiler

Reviewed-by: Kenneth Graunke 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a2195e561a1ef2be1398c05fe83299638220f5ff
Author: Jason Ekstrand 
Date:   Wed Mar 1 11:53:41 2017 -0800

i965: Move select_clip_planes to brw_vs.c

Reviewed-by: Matt Turner 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=818bfdfa1569d271639548b94816d7e749e77bde
Author: Jason Ekstrand 
Date:   Tue Feb 28 19:08:22 2017 -0800

i965: Delete brw_do_cubemap_normalize

This hasn't been used for quite some time now but we never bothered to
get rid of it when we dropped GLSL IR support for vec4.

Reviewed-by: Kenneth Graunke 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=7ac47b1af767d873b4e463ab479ac0effb49211c
Author: Jason Ekstrand 
Date:   Tue Feb 28 19:00:45 2017 -0800

i965: Add a header for brw_vec4_vs_visitor

brw_vs.h is not a compiler file but brw_vec4_visitor is definitely a
compiler thing.

Reviewed-by: Kenneth Graunke 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1c318af743db922a161388e9d1b02c7915886bb3
Author: Jason Ekstrand 
Date:   Tue Feb 28 18:49:45 2017 -0800

i965: Move a bunch of pre-compile and link stuff to brw_program.h

It's all GL-specific and brw_program.h is not part of i965_compiler.

Reviewed-by: Kenneth Graunke 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=fbb91719681147c9107fb7136950635cba23858a
Author: Jason Ekstrand 
Date:   Tue Feb 28 18:48:58 2017 -0800

i965: Move image uniform setup to brw_nir_uniforms.cpp

It's the only thing that's using it.

Reviewed-by: Kenneth Graunke 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=820ae39725560bc347483a66045b399c85b54bda
Author: Jason Ekstrand 
Date:   Tue Feb 28 18:48:23 2017 -0800

i965: Move channel_expressions and vector_splitting to brw_program.h

They're GL-specific.

Reviewed-by: Kenneth Graunke 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=760c8a1d950ddc178a6a7dc9c092790ca36e8e76
Author: Jason Ekstrand 
Date:   Tue Feb 28 18:52:29 2017 -0800

i965: Make mark_surface_used a static inline in brw_compiler.h

One of these days, I'd like to see this function go away all together
but for now, let's at least put it near the struct it updates.

Reviewed-by: Kenneth Graunke 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f33d2b5d055d550b9d33547d76d353457d397fc1
Author: Jason Ekstrand 
Date:   Tue Feb 28 18:38:27 2017 -0800

i965: Move BRW_ATTRIB_WA_* defines to brw_compiler.h

Reviewed-by: Kenneth Graunke 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=4e274bcf668e82b19715e8784bdc018d0ff439ba
Author: Jason Ekstrand 
Date:   Tue Feb 28 18:14:49 2017 -0800

i965: Move BRW_MAX_DRAW_BUFFERS to brw_compiler.h

It does sort-of go with MAX_UBO and friends but MAX_DRAW_BUFFERS is an
actual hardware constant based on the number of things we can blend
rather than an arbitrary "number of things allowed in GL" like some of
the other maximums are.

Reviewed-by: Kenneth Graunke 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=252324166048914119b5d8cfbd1fead907bbc1ed
Author: Jason Ekstrand 
Date:   Tue Feb 28 18:12:35 2017 -0800

i965/inst: Stop using fi_type

It's a mesa define that's trivial to inline.  This removes a dependence
on main/imports.h.

Reviewed-by: Kenneth Graunke 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ffeb73811245243fca45b241ae1b0d4b63153130
Author: Jason Ekstrand 
Date:   Tue Feb 28 18:11:33 2017 -0800

i965: Move brw_register_blocks to brw_fs.cpp

Its one and only caller is brw_compile_fs which lives there.

Reviewed-by: Kenneth Graunke 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=5b87c7e0e3e8c23f650b3ad7953465ba131cbfc4
Author: Jason Ekstrand 
Date:   Tue Feb 28 18:10:53 2017 -0800

i965: Move SHADER_TIME_STRIDE to brw_compiler.h

Reviewed-by: Kenneth Graunke 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f85ef1150125d4335c935ed8fb6

Mesa (master): 25 new commits

2017-02-17 Thread Marek Olšák
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=45240ce598c8ab38b5e0c10cbe7050549561eced
Author: Marek Olšák 
Date:   Wed Feb 15 20:44:24 2017 +0100

radeonsi: use R600_RESOURCE_FLAG_UNMAPPABLE where it's desirable

Reviewed-by: Nicolai Hähnle 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a41587433c4dfd359eebf3fd266975e51e8b3fd6
Author: Marek Olšák 
Date:   Wed Feb 15 20:41:01 2017 +0100

gallium/radeon: add R600_RESOURCE_FLAG_UNMAPPABLE

Reviewed-by: Nicolai Hähnle 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=943442121369a35093e5d4ee1894faf8d8368ec4
Author: Marek Olšák 
Date:   Wed Feb 15 20:07:53 2017 +0100

gallium/radeon: change r600_aligned_buffer_create to take flags, not bind

All call sites set bind = 0. The next commit will use this.

Reviewed-by: Nicolai Hähnle 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ac6007460adaf4bb21028a3281ec622d1e43df49
Author: Marek Olšák 
Date:   Wed Feb 15 19:50:15 2017 +0100

radeonsi: upload constants into VRAM instead of GTT

This lowers lgkm wait cycles by 30% on VI and normal conditions.
The might be a measurable improvement when CE is disabled (radeon)
or under L2 thrashing.

Reviewed-by: Nicolai Hähnle 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a550fbb510c998a0e484e9bf996e2d884ce3230e
Author: Marek Olšák 
Date:   Wed Feb 15 18:49:11 2017 +0100

gallium/radeon: use TCC line size as alignment in other places

Reviewed-by: Nicolai Hähnle 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=791e8ce04a7e9970f437858bdff0a1f8b47626ba
Author: Marek Olšák 
Date:   Wed Feb 15 18:32:34 2017 +0100

radeonsi: use a clever alignment for index buffer uploads

Reviewed-by: Nicolai Hähnle 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d6c8c26851c5fe03a6a21b2280be216aae6bbe33
Author: Marek Olšák 
Date:   Wed Feb 15 18:29:34 2017 +0100

radeonsi: use a clever alignment for descriptor uploads

Non-VBO descriptors won't be smaller than the cache line, so simply use
the cache line size.

Reviewed-by: Nicolai Hähnle 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6b73aafceb1eb8e81754e2f349826994de678466
Author: Marek Olšák 
Date:   Wed Feb 15 18:22:27 2017 +0100

radeonsi: use a clever alignment for constant buffer uploads

This results in a very tiny decrease in lgkm wait cycles.

Reviewed-by: Nicolai Hähnle 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=620aded541a5b81df74575888754094fea2f2ae2
Author: Marek Olšák 
Date:   Wed Feb 15 18:36:21 2017 +0100

radeonsi: move index buffer flushing into a non-upload indexed case

The other codepaths don't need this.

Reviewed-by: Nicolai Hähnle 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=22b8a773e1edb6d1a39b2ab9f715be1138976a2b
Author: Marek Olšák 
Date:   Thu Feb 16 11:39:01 2017 +0100

radeonsi: use SI_MAX_ATTRIBS where it should be used

for consistency; no change in behavior

Reviewed-by: Nicolai Hähnle 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=054f853035bc3f4c3ff2b0732779fb21775893ef
Author: Marek Olšák 
Date:   Tue Feb 14 22:14:55 2017 +0100

radeonsi: sort members of si_shader_key::part

and improve some comments

Reviewed-by: Nicolai Hähnle 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1fabb297177069e95ec1bb7053acb32f8ec3e092
Author: Marek Olšák 
Date:   Tue Feb 14 22:08:32 2017 +0100

radeonsi: have separate LS and ES main shader parts in the shader selector

This might reduce the on-demand compilation if the initial VS/LS/ES
determination is wrong.

Reviewed-by: Nicolai Hähnle 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a02117ba6ee5ede209d372025343f1410ff5346c
Author: Marek Olšák 
Date:   Tue Feb 14 22:06:51 2017 +0100

radeonsi: don't compile pure monolithic shaders asynchronously

there is no point, we have to wait anyway.

Reviewed-by: Nicolai Hähnle 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9b91e0b54cc26919b63d781200a2062c6d572afc
Author: Marek Olšák 
Date:   Fri Feb 10 01:15:21 2017 +0100

radeonsi: allow unaligned vertex buffer offsets and strides on CIK-VI

So that we can disable u_vbuf for GL core profiles.

This is a v2 of the previous VI-only patch.
It requires SH_MEM_CONFIG.ALIGNMENT_MODE = UNALIGNED on CIK-VI.

Reviewed-by: Nicolai Hähnle 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=2fb021b6205a393d82d5f3c2e15af624d79742f4
Author: Marek Olšák 
Date:   Thu Feb 16 01:20:32 2017 +0100

radeonsi: remove the fix_size3 workaround

not needed with the shader fallback

Reviewed-by: Nicolai Hähnle 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=dbd38f2a92633e565fe35c8d9c66f864d6ff4877
Author: Marek Olšák 
Date:   Thu

Mesa (master): 25 new commits

2016-02-21 Thread Marek Olšák
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ff360a52e6700d1085876169ed3b328910b394de
Author: Marek Olšák 
Date:   Thu Feb 11 15:49:34 2016 +0100

radeonsi: implement binary shaders & shader cache in memory (v2)

v2: handle _mesa_hash_table_insert failure
other cosmetic changes

Reviewed-by: Nicolai Hähnle 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1132910e50951c5472d3d85ff7b2771af1885e25
Author: Marek Olšák 
Date:   Thu Feb 11 23:33:54 2016 +0100

gallium/radeon: remove unused radeon_shader_binary_free_* functions

Reviewed-by: Nicolai Hähnle 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=50ac2612d08f2425972dde42e32a71fdce70cebd
Author: Marek Olšák 
Date:   Thu Feb 11 23:20:38 2016 +0100

radeonsi: make radeon_shader_reloc name string fixed-sized

This will simplify implementations of binary shaders.

Reviewed-by: Nicolai Hähnle 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1fe73d55e3f92b1dfbd619d46fd892fd169ae796
Author: Marek Olšák 
Date:   Thu Feb 11 21:09:38 2016 +0100

radeonsi: move some struct si_shader members to new struct si_shader_info

This will be part of shader binaries.

Reviewed-by: Nicolai Hähnle 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=10fa269f4f8e3d58c10e7b3ab317e2d65f8f2f3c
Author: Marek Olšák 
Date:   Thu Feb 11 21:06:33 2016 +0100

radeonsi: use smaller types for some si_shader members

in order to decrease the shader size for a shader cache.

v2: add & use SI_MAX_VS_OUTPUTS

Reviewed-by: Nicolai Hähnle 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9aaf28da629e025f652c7ff63750ad8ee513ff42
Author: Marek Olšák 
Date:   Thu Jan 28 01:29:59 2016 +0100

radeonsi: enable compiling one variant per shader

Shader stats from VERDE:

Default scheduler:

Totals:
SGPRS: 491272 -> 488672 (-0.53 %)
VGPRS: 289980 -> 311093 (7.28 %)
Code Size: 11091656 -> 11219948 (1.16 %) bytes
LDS: 97 -> 97 (0.00 %) blocks
Scratch: 1732608 -> 2246656 (29.67 %) bytes per wave
Max Waves: 78063 -> 77352 (-0.91 %)
Wait states: 0 -> 0 (0.00 %)

Looking at some of the worst regressions, I get:
- The VGPR increase seems to be caused by the fact that if PS has used less
  than 16 VGPRs, now it will always use 16 VGPRs and sometimes even 20.
  However, the wave count remains at 10 if VGPRs <= 24, so no harm there.
- The scratch increase seems to be caused by SGPR spilling.
  The unnecessary SGPR spilling has been an ongoing issue with the compiler
  and it's completely fixable by rematerializing s_loads or reordering
  instructions.

SI scheduler:

Totals:
SGPRS: 374848 -> 374576 (-0.07 %)
VGPRS: 284456 -> 307515 (8.11 %)
Code Size: 11433068 -> 11535452 (0.90 %) bytes
LDS: 97 -> 97 (0.00 %) blocks
Scratch: 509952 -> 522240 (2.41 %) bytes per wave
Max Waves: 79456 -> 78217 (-1.56 %)
Wait states: 0 -> 0 (0.00 %)

VGPRs - same story as before. The SI scheduler doesn't spill SGPRs so much
and generally spills way less than the default scheduler.
(522240 spills vs 2246656 spills)

Reviewed-by: Nicolai Hähnle 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=754cf171e90cc61d135e7c45f8be319ee2db02a5
Author: Marek Olšák 
Date:   Fri Feb 5 23:30:01 2016 +0100

radeonsi: print full shader name before disassembly

Reviewed-by: Nicolai Hähnle 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=3c98e0b369aa79b3adcbbd299fa510e825866416
Author: Marek Olšák 
Date:   Thu Jan 28 02:53:13 2016 +0100

radeonsi: compile non-GS middle parts of shaders immediately if enabled

Still disabled.

Only prologs & epilogs are compiled in draw calls, but each variant of those
is compiled only once per process.

VS is always compiled as hw VS.
TES is always compiled as hw VS.

LS and ES stages are always compiled on demand.

Reviewed-by: Nicolai Hähnle 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e038f8fd49b6ef2d63f3e7adc275ea6600362f25
Author: Marek Olšák 
Date:   Wed Jan 27 02:59:23 2016 +0100

radeonsi: rework polygon stippling for PS prolog

Don't use the pstipple module.

Reviewed-by: Nicolai Hähnle 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=4636d9be4a40138d0a10cadcb1b63eea89d95e34
Author: Marek Olšák 
Date:   Mon Feb 15 23:57:54 2016 +0100

radeonsi: add PS prolog

Reviewed-by: Nicolai Hähnle 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e79bb746ab8525d56f71948ebf3d6dbf8a3bdd4d
Author: Marek Olšák 
Date:   Wed Jan 27 00:50:29 2016 +0100

radeonsi: add PS epilog

Reviewed-by: Nicolai Hähnle 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=eb10919b835a7eef420a839f479f02c7f0cd10e6
Author: Marek Olšák 
Date:   Wed Jan 27 

Mesa (master): 25 new commits

2015-04-22 Thread Emil Velikov
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=0b1823f5beeeb7a35e3addee071b31ac227734dc
Author: Chih-Wei Huang 
Date:   Sat Apr 4 05:01:26 2015 +0800

android: re-build all mesa binaries properly

The clean steps ensure both 32-bit and 64-bit objects are cleaned.

Signed-off-by: Chih-Wei Huang 
Reviewed-by: Emil Velikov 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=36e59215bab203236602e0f5734dffe8339c58ba
Author: Emil Velikov 
Date:   Wed Apr 22 15:38:57 2015 +0100

android: xmlpool: cleanup the generation rules

 - Do not attempt to create the save folder twice - both dir $@ and
PRIVATE_LOCALEDIR point to the same place.
 - Use @ and $(hide), for mkdir and python, to avoid spamming the
output.

Signed-off-by: Emil Velikov 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=98c8997fe5e4be1b158944d2bd58dba42afb4e1e
Author: Chih-Wei Huang 
Date:   Sat Apr 4 05:01:24 2015 +0800

android: xmlpool: Get rid of the last use of intermediates-dir-for

v2 [Emil Velikov]
 - Keep the PRIVATE_LOCALEDIR variable.
 - Do not use $(@D) but the more widespead $(dir $@)

Signed-off-by: Chih-Wei Huang 
Signed-off-by: Emil Velikov 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=5b8d61b0ccf9c3228bef680b02c128734270a9d9
Author: Chih-Wei Huang 
Date:   Sat Apr 4 05:01:23 2015 +0800

android: export the path of the generated headers

The modules need the headers can get the path automatically.

Signed-off-by: Chih-Wei Huang 
Reviewed-by: Emil Velikov 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=b0e33c2256a68d87c4f67b6e25a86e594649ab93
Author: Chih-Wei Huang 
Date:   Sat Apr 4 05:01:22 2015 +0800

android: fix the building rules for Android 5.0

Android 5.0 allows modules to generate source into $OUT/gen, which will
then be copied into $OUT/obj and $OUT/obj_$(TARGET_2ND_ARCH) as necessary.
Modules will need to change calls to local-intermediates-dir into
local-generated-sources-dir.

The patch changes local-intermediates-dir into local-generated-sources-dir.
If the Android version is less than 5.0, fallback to 
local-intermediates-dir.

The patch also fixes the 64-bit building issue of Android 5.0.

v2 [Emil Velikov]
 - Keep the LOCAL_UNSTRIPPED_PATH variable.

Signed-off-by: Chih-Wei Huang 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=671a55084649f9e33018b1e5e1af4e28c639bf3b
Author: Chih-Wei Huang 
Date:   Sat Apr 4 05:01:21 2015 +0800

android: fix building issues of host binaries

Define _GNU_SOURCE to enable features (__USE_XOPEN2K and __USE_UNIX98)
required to build the host binaries.

Signed-off-by: Chih-Wei Huang 
Reviewed-by: Emil Velikov 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=076edc6a036cb7601e010b7851eeaa7cfb1aa4e6
Author: Chih-Wei Huang 
Date:   Thu Apr 2 14:16:33 2015 +0800

android: fix a building error of libmesa_program

Add libmesa_glsl to LOCAL_STATIC_LIBRARIES to get
its exported include path (for nir_opcodes.h).

Signed-off-by: Chih-Wei Huang 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8098bf8e7a975a18b271b44e760ff86feddb0472
Author: Emil Velikov 
Date:   Wed Apr 22 15:53:11 2015 +0100

android: mesa: fold the ARCH_X86_HAVE_SSE4_1 conditionals

Signed-off-by: Emil Velikov 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=669cfc267a1102ff903b3e562f9aa45a410e0312
Author: Emil Velikov 
Date:   Sat Mar 28 18:23:01 2015 +

android: mesa: fix the path of the SSE4_1 optimisations

Commit dd6f641303c(mesa: Build with subdir-objects.) removed the SRCDIR
variable, but forgot to update all references of it.

v2: Fix path - must be relative to LOCAL_PATH. (Chih-Wei)

Cc: "10.5" 
Signed-off-by: Emil Velikov 
Reviewed-by: Chih-Wei Huang 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=64171c2d24196801cbb5b549fdc90743c42e3257
Author: Emil Velikov 
Date:   Sat Mar 28 18:12:23 2015 +

android: build the Mesa IR -> NIR translator

Signed-off-by: Emil Velikov 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c734261dcf91fef6f3f55096835608a600bddec4
Author: Emil Velikov 
Date:   Wed Apr 22 14:51:31 2015 +0100

android: nir: add build rules for nir_builder_opcodes.h

Missed out with commit 2a135c470e3(nir: Add an ALU op builder kind of
like ir_builder.h)

Signed-off-by: Emil Velikov 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=06619749a11651a50e353168c7c793082820585d
Author: Mauro Rossi 
Date:   Fri Mar 27 22:25:45 2015 +

android: add inital NIR build

Required by the i965 driver.

v2:
 - Split out the nir_builder_opcodes.h rules.
 - Do not unconditionally hide the python command - use $(hide)
 - Use LOCAL_EXPORT_C_INCLUDE_DI

Mesa (master): 25 new commits

2013-10-24 Thread Paul Berry
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e8f6f244bb1963c4af81f431865355beef1b9cbb
Author: Paul Berry 
Date:   Tue Oct 15 14:56:28 2013 -0700

glsl: When disabling gl_PerVertex variables, check that mode matches.

In commit 1b4a737 (glsl: Support redeclaration of VS and GS
gl_PerVertex output), I added code to ensure that when an unnamed
gl_PerVertex interface block is redeclared, any ir_variables that
weren't included in the redeclaration are removed from the IR (and the
symbol table).  This ensures that only those variables that were
explicitly redeclared may be used.

However, when I wrote this code, I neglected to match the variable
mode when finding variables to remove.  This meant that redeclaring a
built-in output block might cause the built-in input gl_in to be
accidentally removed.

Fixes piglit test gs-redeclares-pervertex-out-only.

Reviewed-by: Ian Romanick 
Reviewed-by: Matt Turner 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=719bf3016550a279cf0d399b946d0d0b77329927
Author: Paul Berry 
Date:   Tue Oct 15 15:13:59 2013 -0700

glsl: Remove unused gl_PerVertex interface blocks.

The GLSL 4.10 rules for redeclaration of built-in interface blocks
(which we've chosen to regard as clarifications of GLSL 1.50) only
require gl_PerVertex blocks to match in shaders that actually use
those blocks.  The easiest way to implement this is to detect
situations where a compiled shader doesn't refer to any elements of
gl_PerVertex, and remove all the associated ir_variables from the
shader at the end of ast-to-ir conversion.

Fixes piglit tests

linker/interstage-{pervertex,pervertex-in,pervertex-out}-redeclaration-unneeded.

Reviewed-by: Ian Romanick 
Reviewed-by: Matt Turner 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=37d97668ae7e4572c08174a8eee33ca23b9305ea
Author: Paul Berry 
Date:   Tue Oct 15 16:48:59 2013 -0700

glsl: Call check_builtin_array_max_size when redeclaring gl_in.

Normally when a built-in array (such as gl_ClipDistance) is
redeclared, we call get_variable_being_redeclared() to do the
redeclaration, and it in turn calls check_builtin_array_max_size() to
make sure that the redeclared array size isn't too large.

However when a built-in array is redeclared as part of redeclaring
gl_in, we don't call get_variable_being_redeclared() (since the
individual built-ins aren't each represented by their own ir_variable
anymore).  So we need to add an explicit call to
check_builtin_array_max_size() to make sure the new array size isn't
too large.

Note: at the moment this is redundant with a test that's done at link
time, so there's no change to piglit results.  But the patch that
follows will prevent link errors from being reported if gl_PerVertex
isn't used, so in order to prevent that patch from causing
regressions, we need to add the compile check now.  Besides, it's
nicer to report this error at compile time anyhow.

Reviewed-by: Ian Romanick 
Reviewed-by: Matt Turner 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=156b31c5be921bca7b7a96f1838c96c17ec3a602
Author: Paul Berry 
Date:   Wed Oct 16 11:01:42 2013 -0700

mesa: Fix geometry shader program queries.

The queries GEOMETRY_VERTICES_OUT, GEOMETRY_INPUT_TYPE, and
GEOMETRY_OUTPUT_TYPE (defined by GL 3.2) differ from the corresponding
queries in ARB_geometry_shader4 in the following ways:

- They use different enum values

- They can only be queried; they cannot be set.

- Attempting to query them yields INVALID_OPERATION if the program is
  not linked, or lacks a geometry shader.

This patch switches us over from the ARB_geometry_shader4 behaviour to
the GL 3.2 behaviour.

Fixes piglit test query-gs-prim-types.

v2: Improve comment above has_core_gs.

Reviewed-by: Kenneth Graunke 
Reviewed-by: Ian Romanick 
Reviewed-by: Matt Turner 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a49830b8f549c93cf92298048ffe00f931e0525d
Author: Paul Berry 
Date:   Mon Oct 21 21:09:47 2013 -0700

glsl: Account for interface block lowering in program_resource_visitor.

When program_resource_visitor visits variables that were created by
lower_named_interface_blocks, it needs to do extra work to un-do the
effects of lower_named_interface_blocks and construct the proper API
names.

Fixes piglit test
spec/glsl-1.50/execution/interface-blocks-api-access-members.

Reviewed-by: Kenneth Graunke 
Reviewed-by: Ian Romanick 
Reviewed-by: Matt Turner 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=4b97c581b4f85e1712c7900cb099c9d56babb05d
Author: Paul Berry 
Date:   Mon Oct 21 20:27:23 2013 -0700

glsl: mark variables produced by lower

Mesa (master): 25 new commits

2012-08-20 Thread Ian Romanick
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c1114c619acf347917565cd1d0467240a89a76c0
Author: Ian Romanick 
Date:   Thu Jul 26 10:38:15 2012 -0700

APIspec: Remove cruft about AMD_compressed_???_texture

Mesa doesn't support these extensions, and it seems unlikely that it
ever will

Signed-off-by: Ian Romanick 
Reviewed-by: Kenneth Graunke 
Reviewed-by: Brian Paul 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=4c32ee5bcaa0815f4f975066de98c6598bdaf51d
Author: Ian Romanick 
Date:   Fri Jul 27 07:23:14 2012 -0700

mesa/es: Remove redundant glFramebufferTexture3D textarget validation

Signed-off-by: Ian Romanick 
Reviewed-by: Kenneth Graunke 
Reviewed-by: Brian Paul 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=7c9afe50fd674c3503d880b1f0f5216577bf7d9d
Author: Ian Romanick 
Date:   Fri Jul 27 07:18:48 2012 -0700

mesa/es: Remove redundant glGetShaderiv pname validation

Signed-off-by: Ian Romanick 
Reviewed-by: Kenneth Graunke 
Reviewed-by: Brian Paul 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=aaef4416385883a1bb23785164c0ca3973b3267e
Author: Ian Romanick 
Date:   Fri Jul 27 07:06:58 2012 -0700

mesa/es: Remove redundant glCompressedTexImage border validation

Signed-off-by: Ian Romanick 
Reviewed-by: Kenneth Graunke 
Reviewed-by: Brian Paul 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d39cb8e9ef23b7fadde945f27e956f762301a0ec
Author: Ian Romanick 
Date:   Wed Jul 25 15:24:38 2012 -0700

mesa/es: Remove redundant glPointSizePointer type validation

Signed-off-by: Ian Romanick 
Reviewed-by: Kenneth Graunke 
Reviewed-by: Brian Paul 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d54004c3526e2040be6521546b263f29c77f06ce
Author: Ian Romanick 
Date:   Wed Jul 25 16:15:25 2012 -0700

mesa/es: Remove redundant glGetBufferPointer pname validation

Signed-off-by: Ian Romanick 
Reviewed-by: Kenneth Graunke 
Reviewed-by: Brian Paul 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=68d7ce3e9e54bfa544a1438b73d0920bf89a2de7
Author: Ian Romanick 
Date:   Wed Jul 25 15:20:32 2012 -0700

mesa/es: Remove redundant glGetVertexAttribPointer pname validation

Signed-off-by: Ian Romanick 
Reviewed-by: Kenneth Graunke 
Reviewed-by: Brian Paul 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=5be5cf69341c4acf0ae666373790db9ad1df06fd
Author: Ian Romanick 
Date:   Wed Jul 25 07:26:33 2012 -0700

mesa/es: Remove redundant element type validation

Signed-off-by: Ian Romanick 
Reviewed-by: Kenneth Graunke 
Reviewed-by: Brian Paul 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=b99a8caff14d66a963a68d5599da2b50a9938765
Author: Ian Romanick 
Date:   Tue Jul 24 20:18:17 2012 -0700

mesa/es: Remove redundant glGetShaderPrecisionFormat shader type validation

Signed-off-by: Ian Romanick 
Reviewed-by: Kenneth Graunke 
Reviewed-by: Brian Paul 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c914ac239e74282458f69956a4358545b41f9c3f
Author: Ian Romanick 
Date:   Tue Sep 20 16:50:50 2011 -0700

mesa/es: Remove redundant depth func validation

Signed-off-by: Ian Romanick 
Reviewed-by: Kenneth Graunke 
Reviewed-by: Brian Paul 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=af276d9d4bbdafe0845956480edeacfe820bcd84
Author: Ian Romanick 
Date:   Tue Sep 20 16:50:22 2011 -0700

mesa/es: Remove redundant stencil op fail/zfail/zpass validation

Signed-off-by: Ian Romanick 
Reviewed-by: Kenneth Graunke 
Reviewed-by: Brian Paul 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f3f993153c5310c35e79bb6184d32e2271793b0f
Author: Ian Romanick 
Date:   Tue Sep 20 16:47:43 2011 -0700

mesa/es: Remove redundant shade model mode validation

Signed-off-by: Ian Romanick 
Reviewed-by: Kenneth Graunke 
Reviewed-by: Brian Paul 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=5a193557d115e62bf70c599e4037d8e1e3f5a9fc
Author: Ian Romanick 
Date:   Tue Sep 20 16:45:43 2011 -0700

mesa/es: Remove redundant light pname and light validation

Signed-off-by: Ian Romanick 
Reviewed-by: Kenneth Graunke 
Reviewed-by: Brian Paul 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=02344107913f6322360fe4bb09133eda5d57e5b8
Author: Ian Romanick 
Date:   Tue Sep 20 16:43:43 2011 -0700

mesa/es: Remove redundant hint mode validation

Signed-off-by: Ian Romanick 
Reviewed-by: Kenneth Graunke 
Reviewed-by: Brian Paul 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a4251da3b220079a8326fcc39bde00ec16240ae1
Author: Ian Romanick 
Date:   Tue Sep 20 16:21:41 2011 -0700

mesa/es: Remove redundant separate stencil face validation

Signed-off-by: Ian Romanick 
Reviewed-by: Kenneth Graunke 
Reviewed-by: Brian Paul 

URL:  

Mesa (master): 25 new commits

2010-06-28 Thread Jakob Bornecrantz
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a01e0afd9fc0d647081c6903baa1a7ba505c4b05
Merge: 250b92f3bb4fc4a53f3150b0e8ff1e121a5adbc7 
9ca563a9a8573bf79821abc75ccf0fdade19c8a9
Author: Jakob Bornecrantz 
Date:   Mon Jun 28 20:59:09 2010 +0200

Merge branch 'gallium-drm-driver-drescriptor'

Conflicts:
src/gallium/state_trackers/egl/x11/native_dri2.c
src/gallium/state_trackers/egl/x11/native_x11.c
src/gallium/state_trackers/egl/x11/native_x11.h
src/gallium/state_trackers/xorg/xorg_driver.c
src/gallium/winsys/radeon/drm/radeon_drm.c

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9ca563a9a8573bf79821abc75ccf0fdade19c8a9
Author: Jakob Bornecrantz 
Date:   Thu Jun 24 02:36:30 2010 +0200

nouveau: Remove reference to drm_api

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=09b73b2a5f012128f9d3cf6c8189d68fbfcd4e1c
Author: Jakob Bornecrantz 
Date:   Thu Jun 24 02:30:00 2010 +0200

i965g: Remove last references to drm_api

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=44c64596d17423dc560434dcbd209997d87b2a29
Author: Jakob Bornecrantz 
Date:   Thu Jun 24 00:44:53 2010 +0200

swrastg: Use target-helpers

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=57d14f2fbbfc50656be76fa0f77e1ed505180204
Author: Jakob Bornecrantz 
Date:   Thu Jun 24 01:53:05 2010 +0200

gallium: Use debugging helper in all drm targets

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ea1786ec5b1385fe26927e206ca81d87ca70ca6a
Author: Jakob Bornecrantz 
Date:   Thu Jun 24 00:50:08 2010 +0200

gallium: Add debug target helper

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=59981d418f14f684c9e8d86358e7520abf34a7c9
Author: Jakob Bornecrantz 
Date:   Wed Jun 23 23:51:52 2010 +0200

gallium: Fix scons build

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e47d32d721a76b5df3b640ccdc9bad15dffb8450
Author: Jakob Bornecrantz 
Date:   Wed Jun 23 23:14:22 2010 +0200

gallium: Remove drm_api and all references to it

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=92fde20de33d9ffb4ddce9b03eebbfbffe9d93bc
Author: Jakob Bornecrantz 
Date:   Thu Jun 24 02:10:18 2010 +0200

r600g: Move bootstrap code to target

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=cf91accc93b9f172b2f7c970f39e69b268a5bb26
Author: Jakob Bornecrantz 
Date:   Wed Jun 23 23:03:28 2010 +0200

nouveau: Move bootstrap code to targets

Well sorta, at least I removed the drm_api dependancy and the
target can layer anything it wants to now.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=10e3b9f4d029df5c6c01a5d76c9085c48d82ac43
Author: Jakob Bornecrantz 
Date:   Wed Jun 23 22:49:11 2010 +0200

nouveau: Rename winsys file

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=23a915e2cfbc95c018946155eb301ffad3a0d550
Author: Jakob Bornecrantz 
Date:   Wed Jun 23 03:31:18 2010 +0200

gallium: Drop sw drm winsys

Last user went away

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=41e0f6bc2f943a05766872d419e4398ddd37b42a
Author: Jakob Bornecrantz 
Date:   Fri Jun 18 19:07:26 2010 +0200

i965g: Move bootstrap code to targets

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=0106be903a08635fa752c65a94e7e244db3d1aff
Author: Jakob Bornecrantz 
Date:   Wed Jun 23 02:41:49 2010 +0200

i965g: Rename winsys file

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=2b15e37348ca234c5a3352db55babb7bd293b708
Author: Jakob Bornecrantz 
Date:   Wed Jun 23 02:28:47 2010 +0200

i965g: Moved pci_id to winsys struct

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=bd739e95763d8051679649cc44d16d4fcbb0fec1
Author: Jakob Bornecrantz 
Date:   Fri Jun 18 19:07:04 2010 +0200

target-helpers: Add inline helpers

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=0ee7a17d0ca14ddbf4ef48da764627851eca048c
Author: Jakob Bornecrantz 
Date:   Mon Jun 14 17:37:21 2010 +0200

swrastg: Fix glue file

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6e3fc2de2a185775a721b3633f420aa3d2c9a949
Author: Jakob Bornecrantz 
Date:   Sun Jun 6 11:56:23 2010 +0100

r300g: Move bootstrap code to targets

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c7015877beedd9831402755dbc58afddcbbd5339
Author: Jakob Bornecrantz 
Date:   Tue Jun 1 04:38:24 2010 +0100

i915g: Move bootstrap code to targets

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9ff10b67bc1d69bef96cb24627481ab939ec1aa6
Author: Jakob Bornecrantz 
Date:   Sun Jun 6 11:13:49 2010 +0100

svga: Move bootstrap code to targets

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=16fa300d55f789cfd71b1d61e3ff74d2eafd12ab
Author: Jakob Bornecrantz 
Date:   Tue Jun 1 07:56:33 2010 +0100

swrastg: Use new drm_driver interface in EGL

The EGL state tracker is really weird in how it does software,
in the past we would just not return a drm_api s

Mesa (master): 25 new commits

2010-03-22 Thread Brian Paul
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=98b4e7aee83c7874db0ea23f632851b6fb5ba62a
Author: Brian Paul 
Date:   Mon Mar 22 09:08:09 2010 -0600

glslcompiler: fix build breakage

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=182c42c8da6edfa66819eef02f4dea310c1f68d7
Merge: 5cb4a3524b54480418b4c4717c4a0f0a8669939c 
ca97f8b9bab80844be613a9253643b7da8e738c7
Author: Brian Paul 
Date:   Mon Mar 22 09:07:46 2010 -0600

Merge branch '7.8'

Conflicts:

src/gallium/drivers/cell/ppu/cell_screen.c
src/mesa/state_tracker/st_cb_drawpixels.c

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ca97f8b9bab80844be613a9253643b7da8e738c7
Author: Brian Paul 
Date:   Mon Mar 22 09:00:13 2010 -0600

glslcompiler: fix build breakage

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=361e8e911886784407c7aff91e09b9b2bfd5cde8
Author: Pauli Nieminen 
Date:   Mon Mar 22 15:14:16 2010 +0200

mesa: Add end of line to the end of a debug output.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=fce72d58036eb8a993bda1a7c5d74b8fcc819a8c
Author: Vinson Lee 
Date:   Sun Mar 21 19:21:11 2010 -0700

progs/tests: Add cva_huge to SCons build.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1e7d65bb5b50efbd5812e7996910b7688eb27192
Author: Vinson Lee 
Date:   Sun Mar 21 19:09:54 2010 -0700

progs/tests: Include stddef.h for ptrdiff_t on all platforms.

stddef.h is the standard C header that defines ptrdiff_t.

Fixes build of cva_huge on Mac OS X.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=4ea694a26b99835d0b5bc814cf024850874a9a83
Author: Pauli Nieminen 
Date:   Sun Mar 21 23:23:21 2010 +0200

r200: Fix emit size prediction to account elt splitting.

Emit sizes prediction didn't account for render splitting in
hwtnl path.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=0900544fb54cbc2127b8729393c9c1308cd218f9
Author: Pauli Nieminen 
Date:   Sun Mar 21 22:55:13 2010 +0200

r200: Don't flush when closing elts in KMS.

Flush in middle of rendering in KMS is not allowed because
buffers are discarded in flush.

Fixes crash when emiting split indices with RADEON_DEBUG=all.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1968d8f31d0ac83557c9366dea39b15e92bb1516
Author: Pauli Nieminen 
Date:   Sun Mar 21 20:16:17 2010 +0200

r200: Fix swtnl fallback to flush pending rendering before transition.

Flush after transition would emit wrong state that could cause
wrong state emited for pending rendering operation.

Fixes wan once from extrement tuxracer that is using per vertex
materials.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=44e3ec3c05f0806f0940887ed9e30d94bf0748e0
Author: Pauli Nieminen 
Date:   Sun Mar 21 20:02:10 2010 +0200

r200: Fix mixed indetion in r200TclFallback.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9a7acbccfbc061322be493633d5c5bf4afd302b5
Author: Pauli Nieminen 
Date:   Sun Mar 21 12:42:10 2010 +0200

vbo: Fix vbo_split_copy to pass correct max_index to draw.

vbo_split_copy was passing one past the max_index to draw function
which caused _tnl_draw_prims function to read uninitialized values
from copied array.

Bug was spoted in valgrind report of progs/tests/cva_huge.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a81cd67a4f37233319281a69385f07feaa97fd13
Author: Pauli Nieminen 
Date:   Sun Mar 21 13:11:47 2010 +0200

tests: Add test for huge client arrays that has to be split.

When running this test case in valgrind report includes read of unitialized
value in _tnl_draw_prims. The bug doesn't cause any vissible errors.

Bug is caused by vbo_split_copy that is calling draw function with max_index
one past the end instead of the end.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=3d72c4ae78cfdad7d160b0960adb792c863b
Author: Marek Olšák 
Date:   Sat Mar 20 18:31:11 2010 +0100

r300/compiler: fix assertion failure in the r500-fragprog emission path

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f0491c945cb5d10ef1c45f4e28e874dffba8be4b
Author: Brian Paul 
Date:   Sat Mar 20 10:33:10 2010 -0600

docs: remove the 'Last updated date'

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6fed3a9fa0a87ae797f995de5b51eb9be3493fe0
Author: Chia-I Wu 
Date:   Sat Mar 20 23:58:15 2010 +0800

glapi: Fix aliases to non-static functions.

The bug is triggered by 41a87a43e11c664935349f938022d58d3e22da4e.
glBlitFramebuffer, for example, is an alias to the non-static
glBlitFramebufferEXT.  We should define glBlitFramebuffer as an alias to
_dispatch_stub_NNN.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=41a87a43e11c664935349f938022d58d3e22da4e
Author: Chia-I Wu 
Date:   Thu Mar 18 11:36:57 2010 +0800

glapi: Correctly generate static disatches for 

Mesa (master): 25 new commits

2010-03-16 Thread Chia-I Wu
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e0ce4a4a0994211ead8e5a77cccdd2a084e8a288
Author: Chia-I Wu 
Date:   Tue Mar 16 15:48:03 2010 +0800

i965g: Fix use of an uninitialized variable.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9d3a873f425fde83628b547c4b4638f39d78c1b9
Merge: 95d43bccde9ba5c0727bb2b9e52d050dacfa0cfa 
a66d0081044bfcbfbe72ecbc27692387e4716e5c
Author: Chia-I Wu 
Date:   Tue Mar 16 15:12:46 2010 +0800

Merge remote branch 'origin/gallium-st-api'

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a66d0081044bfcbfbe72ecbc27692387e4716e5c
Author: Chia-I Wu 
Date:   Mon Mar 15 19:15:29 2010 +0800

st/mesa: Update the comments in st_manager.c.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=23e9a25e1ff01d9f3ef5cc99f59e0fda0ac2d421
Author: Chia-I Wu 
Date:   Sun Mar 14 14:58:27 2010 +0800

st/glx: Fix glXCopySubBufferMESA.

Honor the (x, y) and (width, height) pairs.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d6262bdcfb64e1f88f6a890829f5c30c26bc372b
Author: Chia-I Wu 
Date:   Sun Mar 14 12:01:27 2010 +0800

st/glx: Sync the back buffer to the front buffer.

Consider this rendering sequence

  * render to the back buffer
  * swap buffers
  * read from the front buffer

The front buffer is expected to have the contents of the back buffer.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=48bc3cca89f7aecc40d1661e695796113df6e583
Author: Chia-I Wu 
Date:   Sun Mar 14 11:34:16 2010 +0800

st/glx: Add support for GLX_MESA_copy_sub_buffer.

Create a per-display pipe_context as needed to copy the contents between
framebuffer attachments.  This allows us to support
GLX_MESA_copy_sub_buffer.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6632915e957149c153a3f793c400a532b4995b18
Author: Chia-I Wu 
Date:   Sun Mar 14 11:20:58 2010 +0800

st/glx: Add xmesa_display to hold per-display variables.

This basically adds a static xmesa_display to collect per-display static
variables in xm_api.c.  Multiple display support is still missing, but
this is a step forward.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=4a30330b26b543dfa864a05a1e8072f764369a25
Author: Chia-I Wu 
Date:   Sun Mar 14 00:10:09 2010 +0800

st/mesa: Fix handling of FBO.

FBOs are created by st_new_framebuffer and cannot be casted to
st_framebuffer.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8c210c1b3b5e63eebae2b73814d2000520576ce7
Author: Chia-I Wu 
Date:   Sat Mar 13 20:30:03 2010 +0800

st/mesa: Validate the state in st_readpixels.

The front renderbuffer of a framebuffer is usually added as needed when
glReadBuffer(GL_FRONT) is called.  When the call is followed by
glReadPixels, we should validate the state before reading from the
renderbuffer.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=66cd38f465499863de106e1ae83b5de85072c29b
Author: Chia-I Wu 
Date:   Sat Mar 13 17:40:24 2010 +0800

st/glx: Fix framebuffer validation.

When xmesa_st_framebuffer_validate was called twice with different sets
of attachments, the second call was ignored.  Add a texture_mask to
remember which textures have been requested to make sure the missing
ones get created.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=418b9ac2990fc6809de359a862ee809d3b86343c
Author: Chia-I Wu 
Date:   Sat Mar 13 17:39:14 2010 +0800

st/glx: Correctly set buffer_mask of a visual.

Stupid typos again..

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f91d8c6885c8944322991115b739cee3e2fdf6bd
Author: Chia-I Wu 
Date:   Sat Mar 13 17:00:24 2010 +0800

st/mesa: Set revalidate in st_framebuffer_update_attachments.

There are two conditions that a validation is required.  One is when the
the framebuffer becomes invalid.  The other is when we request for
textures that we did not request before.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=813c58d77e21cb59adb914b4b4ee26be758ff0ea
Author: Chia-I Wu 
Date:   Sat Mar 13 15:57:15 2010 +0800

st/glx: Make xmesa_create_st_api a callback of xm_driver.

Instead of guessing the API in st/glx, let the target decide how to
create st_api.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=fecb97aab42e1a099f12cc7a47ed7219cd041809
Author: Chia-I Wu 
Date:   Sat Mar 13 14:57:32 2010 +0800

st/egl: Fix eglCopyBuffers.

Use a (real) pipe context to copy between pipe surfaces.  Fix a NULL
dereference of the temporary native surface created for copying.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=495bfb0ad2e60638e7b2e94f36f0079e3f450091
Author: Chia-I Wu 
Date:   Sat Mar 13 00:52:47 2010 +0800

st/glx: Fix leaks in xmesa_st_framebuffer.

The textures and surface of a framebuffer should be unreferenced when
the framebuffer is destroyed.

URL:

Mesa (master): 25 new commits

2010-03-08 Thread Brian Paul
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e5923a1240d8b32f5af080b0b4191d3b9299a630
Merge: 39ab5ae30c303dd561252cb592d4de35814b6a70 
e1762fb870f86afc4f6bd000b4a1c059d161f10d
Author: Brian Paul 
Date:   Mon Mar 8 11:43:20 2010 -0700

Merge branch '7.8'

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e1762fb870f86afc4f6bd000b4a1c059d161f10d
Author: Brian Paul 
Date:   Mon Mar 8 11:34:55 2010 -0700

softpipe: zero-out entire clear_flags array in sp_tile_cache_flush_clear()

Before, we only cleared the flags for the active tiles (the ones inside
the framebuffer bound).  The problem is if we later bound a different,
larger surface to the tile cache we'd have some stale clear-flags still
set (and mistakenly clear some tiles in the new surface).

Fixes fd.o bug 26932.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=80dc54e308dfb1fad344272978ff14646995e00a
Author: Brian Paul 
Date:   Mon Mar 8 11:31:23 2010 -0700

st/mesa: don't detach renderbuffer, surface in st_finish_render_texture()

There's no reason to release the renderbuffer from the framebuffer object
or release the gallium surface in this function (they're reference counted).
In fact, we don't want to do this because we may later use the texture as a
pixel source (ex: glBlitFramebuffer) and need the surface.

Fixes fd.o bug 26923 and is part of the fix for bug 26932.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=df9bf78f888702542a506f551204a2e7dc8b7df1
Author: Alex Deucher 
Date:   Mon Mar 8 11:59:02 2010 -0500

r600: enable GL_ARB_pixel_buffer_object

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=fe25bee14f4df3ef87cc7fee67e610da9afc5eda
Author: Brian Paul 
Date:   Mon Mar 8 09:58:54 2010 -0700

mesa: add additional missing z formats for render to texture

Allow render to texture for X8_Z24 and Z24_X8 formats.
Replace big if/else with switch, etc.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9458c2061ba5d8857217d9a7504b42ea17022897
Author: Alex Deucher 
Date:   Mon Mar 8 10:13:49 2010 -0500

radeon/r200/r600: allow src and dst BOs to be placed in GTT during blit

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d7ad1b8b0788536f6fcd261fbe0db7a10b84ac0a
Author: Alex Deucher 
Date:   Mon Mar 8 10:04:02 2010 -0500

radeon/r200/r600: reset bos when validating buffers during blit

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c65235f97efe30eb9444f7c8f20cb8f0cc529d19
Author: Alex Deucher 
Date:   Mon Mar 8 10:00:59 2010 -0500

r600: recalculate point size, if point min/max size changes

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d18b3023653e709051a56f5806988f24724972e7
Author: Alex Deucher 
Date:   Mon Mar 8 09:57:26 2010 -0500

r600: no need to flush on context init

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=b3b6bd5da1241086bda75431ddde6002e9353268
Author: Maciej Cencora 
Date:   Sun Feb 14 00:02:05 2010 +0100

r300: don't enable EXT_packed_depth_stencil

R300 hw doesn't support sampling from Z24_S8 or S8_Z24 formats.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=29e02c7e720a18b59317c4ad97d8ffc149228c69
Author: Maciej Cencora 
Date:   Sat Jan 16 15:11:37 2010 +0100

radeon: no need to emit full state twice after flush

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=4572ae1925e63227b2785fec446862d398ad0005
Author: Maciej Cencora 
Date:   Thu Mar 4 18:35:55 2010 +0100

r300: allow src and dst BOs to be placed in GTT during blit

Fixes some relocation failures

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=62b3321d7d9774ed235bc3d328b6a0f5da153dcf
Author: Maciej Cencora 
Date:   Sat Feb 6 18:25:36 2010 +0100

r300: reset bos when validating buffers during blit

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8ccd83ab921380953a0e5cebd941444f85c23ed1
Author: Maciej Cencora 
Date:   Sat Feb 6 19:37:23 2010 +0100

radeon: fallback to software in glCopyTexImage if blit isn't available

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=2872c1cc328008dea166319f3023a3f568247bcf
Author: Maciej Cencora 
Date:   Sun Mar 7 12:02:28 2010 +0100

r300: VAP flush is needed only when vertex program or constants are changed

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=77ed4d1f5d2f73ec02478eb931296813c25b520c
Author: Maciej Cencora 
Date:   Sat Mar 6 13:39:13 2010 +0100

r300: recalculate point size, if point min/max size changes

Fixes two wine d3d9 unit tests

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=44d92d4bbe7d4e90f9d7bb97af2fd74cbda3b2ee
Author: Maciej Cencora 
Date:   Sat Mar 6 13:18:11 2010 +0100

r300: no need to flush on context init

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=b1ab15c633b9307cf6e17b794949f9c7f4dc4226
Author: Maciej Cencora 
Date:   Sat Mar 6 13:09:47 2010 +0100

r300: remo

Mesa (master): 25 new commits

2010-01-08 Thread Brian Paul
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=fd70841121475d7aad98812d6bf9c9c67567b89a
Merge: a1de400e8de06a80ab140bb0fa950e990607572d 
674c76310fe93dd3d7a15af0f72bb9f04351d09f
Author: Brian Paul 
Date:   Fri Jan 8 08:21:12 2010 -0700

Merge branch 'mesa_7_7_branch'

Conflicts:

src/mesa/drivers/dri/i965/brw_wm_emit.c

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=674c76310fe93dd3d7a15af0f72bb9f04351d09f
Author: Dan Nicholson 
Date:   Fri Jan 8 05:59:55 2010 -0800

mesa: Ensure libmesagallium.a is finished building before descending

Signed-off-by: Dan Nicholson 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=3c42e403de9da2abd46cd0d15de107250866859d
Author: Vinson Lee 
Date:   Fri Jan 8 01:13:46 2010 -0800

r300: Move initial declaration outside for loop.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=5dd9e23d6204e6ec36468d4ae99e630c782c1cc9
Author: Brian Paul 
Date:   Thu Jan 7 14:55:27 2010 -0700

docs: document Gallium SSE codegen for XPD bug fix

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8647aa1d8d8ffce7ae3b00e7e277be635124acad
Author: Brian Paul 
Date:   Thu Jan 7 14:49:12 2010 -0700

tgsi: fix SSE code emit for XPD

Rearrange things so that the writes to the dest registers happen
after we've fetched/used all src registers.

The problematic instruction was:  XPD TEMP[2].xyz, TEMP[0], TEMP[2];
Note that the dst reg is also a src reg.

This fixes bad shading with progs/glsl/bump.c since Eric's changes to the
Mesa program optimizer in commit d6690ce15fb8c7c6abf1bc0d847c1d2da2c33904.
The optimizer rearranges some registers so we occasionally wind up with
something like the above.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=2b7a4b2c0e9b18ed985b0eda34723d53bc2a305b
Author: Brian Paul 
Date:   Thu Jan 7 08:22:37 2010 -0700

progs/fp: remove invalid tri-inv.c test

INV is not a valid instruction.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d42467687e9de756aa3e4bca5e55f69391af3065
Author: Vinson Lee 
Date:   Wed Jan 6 21:39:44 2010 -0800

progs/demos: Assert that input to malloc is valid.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=45ac10fe6a9c01aec9b7245f9a5621402842f466
Author: Vinson Lee 
Date:   Wed Jan 6 18:18:49 2010 -0800

progs/xdemos: Check for string overflow.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=25ffd7627828d5a6d1858e0fd5f2a4b796c72be8
Author: Vinson Lee 
Date:   Wed Jan 6 18:08:17 2010 -0800

progs/xdemos: Check for string overflow.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=468f270f3fc0efc136d03d0b6022916ddd8ea893
Author: Vinson Lee 
Date:   Wed Jan 6 17:51:08 2010 -0800

svga: Silence uninitialized variable warning.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ef7eb62423077becf2f896f771d6d76e9671f114
Author: Brian Paul 
Date:   Wed Jan 6 18:22:05 2010 -0700

meta: remove F suffix from _mesa_Ortho() params

_mesa_Ortho() takes GLdoubles.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=73bd4000160663db8c0c1d5918984a5b9268e9a0
Author: Brian Paul 
Date:   Wed Jan 6 18:19:42 2010 -0700

docs: document a mipmap generation bug fix

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=cb3cb96fbd3279bf3dd50439444c4c064ed6f748
Author: Brian Paul 
Date:   Wed Jan 6 18:18:04 2010 -0700

meta: move destination vertex/projection setup out of 
_mesa_meta_GenerateMipmap

Based on a patch submitted by Pierre Willenbrock 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=06970b2ccb6add0696710f01a07ebf9ec3922c80
Author: Brian Paul 
Date:   Wed Jan 6 18:12:42 2010 -0700

meta: set viewport and projection matrix in _mesa_meta_GenerateMipmap

This fixes mipmap levels being clipped to the last viewport.

Based on a patch submitted by Pierre Willenbrock 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=49653c01e8288018d8a1d8e935ef64645f088402
Author: Andre Maasikas 
Date:   Tue Dec 22 14:50:10 2009 +0200

r600: adjust after radeon mipmap changes in 7118db8700

R600_OUT_BATCH_RELOC doesn't really use offset so set it
in TEX_RESOURCE2
+ typo fix

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8485811f10142f54756d876ebe91193bfc8f8a0e
Author: Brian Paul 
Date:   Wed Jan 6 17:42:53 2010 -0700

tnl: set FOGC result to (f,0,0,1)

Fixed FDO bug 23397.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=4c45810d575c53f3e829809cb4d27e35739a2a69
Author: Vinson Lee 
Date:   Wed Jan 6 15:35:18 2010 -0800

progs/xdemos: Remove comma at end of enumerator list.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=96a4e4552dab2dc0e741de40be0184a1e94515ef
Author: Vinson Lee 
Date:   Wed Jan 6 15:33:13 2010 -0800

progs/xdemos: Use temporary variables.

This was missed from the previous commit to glxheads.c.

U