Mesa (master): 21 new commits

2015-05-02 Thread Chia-I Wu
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=4348046a2f08d9795a158b96f8579f13f5e693e6
Author: Chia-I Wu 
Date:   Sat May 2 15:33:27 2015 +0800

ilo: use ilo_image exclusively in core

Initialize ilo_view_surface and ilo_zs_surface from ilo_image instead of
ilo_texture.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9b705ec32d8cd527ab8d6ebc89f6550d52908c62
Author: Chia-I Wu 
Date:   Sat May 2 15:36:59 2015 +0800

ilo: add ilo_image_can_enable_aux()

It replaces ilo_texture_can_enable_hiz().

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=430594c34ff594b5bf47417b7240a62fc93509e9
Author: Chia-I Wu 
Date:   Sat May 2 15:06:36 2015 +0800

ilo: make ilo_image more self-contained

Add depth0, sample_count, and scanout to ilo_image.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f6ca4084c7eca649e5444ac20218d94bd2a88057
Author: Chia-I Wu 
Date:   Sat May 2 14:14:15 2015 +0800

ilo: add ilo_image_init_for_imported()

It replaces ilo_image_update_for_imported_bo() and enables more error
checkings for imported textures.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=938c9b8cea4d4f38b4edac7dbeb24481fbbeeca7
Author: Chia-I Wu 
Date:   Sat May 2 14:25:17 2015 +0800

ilo: prepare for image init for imported bo

Refactoring in prepraration for ilo_image_init_for_imported().

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=3f9415077b1c8abcf8f93231f8d72b5017ea6343
Author: Chia-I Wu 
Date:   Sat May 2 14:24:04 2015 +0800

ilo: constify ilo_image_params

Make ilo_image_params const in functions that do not modify it.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c209aa7a8f08acb89f7294328589f47a88b44703
Author: Chia-I Wu 
Date:   Sat May 2 12:04:26 2015 +0800

ilo: improve readability of ilo_image

Improve docs, rename struct fields, and reorder walk types.  No real 
changes.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9b72bf5bd22c14c4cc17b6945d4b74f4c0eae80a
Author: Chia-I Wu 
Date:   Fri May 1 15:33:56 2015 +0800

ilo: move command builder to core

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9e24c49e6443c076ad892e6004e04956560e446a
Author: Chia-I Wu 
Date:   Fri May 1 11:47:13 2015 +0800

ilo: move ilo_state_3d* to core

ilo state structs (struct ilo_xxx_state) are moved as well.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8ab18262c5984736b11b28a30a7facda0d6c65e8
Author: Chia-I Wu 
Date:   Fri May 1 15:07:13 2015 +0800

ilo: add ilo_buffer.h to core

Rename the original ilo_buffer to ilo_buffer_resource to avoid name 
conflict.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=3afbeb115ab19164fb2e5bf8df88b6d03d39254b
Author: Chia-I Wu 
Date:   Wed Mar 25 12:22:40 2015 +0800

ilo: move BOs from ilo_texture to ilo_image

We want to work with ilo_image instead of ilo_texture in core.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ac47563cb40a79ec2bf149c6d9916a9d66361753
Author: Chia-I Wu 
Date:   Sun Mar 8 13:39:02 2015 +0800

ilo: move ilo_layout.[ch] to core as ilo_image.[ch]

Move files and s/layout/image/.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=82527655324b09c0d347a948e9bc66e79e48f201
Author: Chia-I Wu 
Date:   Wed Mar 25 10:18:46 2015 +0800

ilo: add ilo_format.[ch] to core

The original ilo_format.[ch] are removed.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9b7080c8b35b02b16f58fb8b869b45de9857e8e5
Author: Chia-I Wu 
Date:   Sat Mar 7 13:31:52 2015 +0800

ilo: add ilo_fence.h to core

Implement pipe_fence_handle on top of ilo_fence.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=2182beb431a3e866022fb76199a5a58dfb23d1e4
Author: Chia-I Wu 
Date:   Sun Mar 8 04:45:16 2015 +0800

ilo: add ilo_dev_init() to core

Move init_dev() from ilo_screen.c to core.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=7562f9e907d9bb00832c6b75b833acd169bfe0ea
Author: Chia-I Wu 
Date:   Sun Mar 8 04:37:02 2015 +0800

ilo: rename ilo_dev_info to ilo_dev

With intel_winsys being embedded in it, drop the "_info" suffix.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=19351af53dfffb8543d21a58be9c9f9a52b3ba62
Author: Chia-I Wu 
Date:   Sun Mar 8 04:33:49 2015 +0800

ilo: move intel_winsys to ilo_dev_info

We want to use ilo_dev_info instead of ilo_screen in core.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=b3197fe5f4bfd3f75e6bb64c05c2709bb7985b2c
Author: Chia-I Wu 
Date:   Sun Mar 8 04:22:19 2015 +0800

ilo: add ilo_dev.h to core

Move what are remaining in ilo_common.h (that is, ilo_dev_*) to ilo_dev.h.

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=7bb4fa72c04459c800be8ab79690da07e426d71c
Author: Chia-I Wu 
Date:   Sun Mar 8 04:18:14 2015 +0800

ilo: add ilo_debug.[ch] to core

They co

Mesa (master): 29 new commits

2015-05-02 Thread Jordan Justen
URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=212e53feac673ea4ac0345fe493418b187df
Author: Jordan Justen 
Date:   Wed Aug 27 11:10:35 2014 -0700

i965: Upload atomic buffer state for compute shaders

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

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=5328ffbe799bf40a971ebe804404ade91abddd33
Author: Jordan Justen 
Date:   Thu Aug 28 00:48:16 2014 -0700

i965/cs: Emit MEDIA_STATE_FLUSH after WALKER

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

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8d87070af295140fb3558b6784dc6303fde11a67
Author: Jordan Justen 
Date:   Thu Aug 28 14:47:19 2014 -0700

i965/cs: Implement brw_emit_gpgpu_walker

Tested on Ivybridge, Haswell and Broadwell.

v2:
 * Use SET_FIELD. (Ken)
 * Use simd_size / 16 to support SIMD8/16/32. Ken suggested
   that we might be able to do it arithmetically rather than just
   supporting SIMD8 and SIMD16 with a conditional.

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

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=0e0e23ef537c9add672ff322f34e129a07edc55e
Author: Jordan Justen 
Date:   Wed Apr 22 11:43:50 2015 -0700

i965/state: Emit pipeline select when changing pipelines

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

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=013031b2291e87f2559a67c2c54b9004c71ef91b
Author: Paul Berry 
Date:   Thu Jan 9 19:43:18 2014 -0800

i965: Implement DispatchCompute() back-end

brw_emit_gpgpu_walker will be implemented in a subsequent patch.

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

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8f1423b2c484de358bad6cee548f630d87d145da
Author: Paul Berry 
Date:   Thu Jan 9 19:21:41 2014 -0800

main/cs: Implement front end code for glDispatchCompute().

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

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=4d0f3d2319169aca112f9387ef7509290713dc75
Author: Paul Berry 
Date:   Thu Jan 9 18:54:35 2014 -0800

mesa/cs: Add DispatchCompute() to driver function table.

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

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=5f70b49d4bffaaa073d6cc2a958ec655c201fd10
Author: Jordan Justen 
Date:   Wed Mar 11 22:51:00 2015 -0700

i965/cs: Emit state base address

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

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=b750e14fbbeb20a6daa869ae642c0c1e1ce6e6d2
Author: Jordan Justen 
Date:   Wed Apr 15 18:27:50 2015 -0700

i965/fs: Add CS shader time support

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

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6b1b484b60890380a5899517a4e91a674be0c4a2
Author: Jordan Justen 
Date:   Thu Aug 28 15:35:57 2014 -0700

i965/cs: Upload brw_cs_state

v3:
 * Add defines. Misc cleanup suggestions. (Ken)

Signed-off-by: Jordan Justen 
Acked-by: Kenneth Graunke 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6ec6c1581c2963423917ee1598ffb07cab3f2ddc
Author: Jordan Justen 
Date:   Sat Mar 14 12:55:54 2015 -0700

i965/cs: Support CS program precompile

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

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=17233f9bbcbf570f0c7633c63dbd5ed88634ed60
Author: Jordan Justen 
Date:   Tue Apr 21 00:31:12 2015 -0700

i965: Add brw_setup_tex_for_precompile. Use in VS, GS & FS.

Suggested-by: Kristian Høgsberg 
Signed-off-by: Jordan Justen 
Reviewed-by: Kenneth Graunke 

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=932045061b5850368e8a4a5b3e6609eba6ed8d66
Author: Jordan Justen 
Date:   Thu Aug 28 15:27:22 2014 -0700

i965/cs: Emit compute shader code and upload programs

v2:
 * Don't bother checking for 'gen > 5' (krh)
 * Populate sampler data in key (krh)

v3:
 * Drop no8 support, and simplify code in several places (Ken)

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

URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=cb18f3f0213c010e657fd0b41e681e960a20b790
Author: Jordan Justen 
Date:   Wed Apr 29 10:54:17 2015 -0700

i965/cs: Set invocation counts based on max_cs_threads

For ES, we set the max counts based on SIMD8, which is currently
accurate.

For desktop GL, we set the max counts based on SIMD16, which can fail
in some cases where a SIMD16 program is not currently supported.
Therefore, this value is not currently accurate, but will work fine in
many cases, and lets us run more test cases. Eventually we want to
always be able to generate a SIMD16 program.