Mesa (master): 73 new commits
Marek Olšák
mareko at kemper.freedesktop.org
Thu Jun 22 00:28:22 UTC 2017
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=79bd1d4f8b9f176b099854c6954960dc7fc53b02
Author: Marek Olšák <marek.olsak at amd.com>
Date: Wed Jun 7 00:16:46 2017 +0200
radeonsi/gfx9: keep reusing the same buffer/address for the gfx9 flush fence
instead of using a monotonic suballocator
v2: initialize the memory at context creation
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c66fc618cca2c0a1caf9f56f3dfbbdc1d95d0e8c
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat May 13 00:40:34 2017 +0200
radeonsi/gfx9: enable the constant engine
I think this kernel commit fixes it:
drm/amdgpu:use FRAME_CNTL for new GFX ucode
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d7141d8bc0d534a1a79a2285ac6cda3838ca872e
Author: Marek Olšák <marek.olsak at amd.com>
Date: Tue Jun 6 12:13:40 2017 +0200
radeonsi/gfx9: indirect buffers and all CP packets use TC L2
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2638250fecab821c27c95d7bc48a212cd269c708
Author: Marek Olšák <marek.olsak at amd.com>
Date: Thu Jun 15 01:42:46 2017 +0200
radeonsi: flush CB after MSAA only when transitioning from CB to textures
The main flush before texturing is done after the FMASK decompress pass.
CB after MSAA rendering is not flushed in set_framebuffer_state and also
not in memory_barrier if the current color buffer is MSAA. We fully rely
on the FMASK decompress pass for the flushing.
Some CB decompress and resolve passes need an explicit flush before and
after.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=51c219739ccb3672a0beaa0a51b37933f4ecaebd
Author: Marek Olšák <marek.olsak at amd.com>
Date: Thu Jun 15 01:23:22 2017 +0200
radeonsi: unify CB_RESOLVE blitter invocation code
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=226361082705be990804569ee731cd3d21749deb
Author: Marek Olšák <marek.olsak at amd.com>
Date: Thu Jun 15 00:34:08 2017 +0200
radeonsi: flush DB caches only when transitioning from DB to texturing
Use the mechanism of si_decompress_textures, but instead of doing
the actual decompression, just flag the DB cache flush there.
This removes a lot of unnecessary DB cache flushes.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fdca690e91f932b494611a9e8808778405138808
Author: Marek Olšák <marek.olsak at amd.com>
Date: Thu Jun 15 00:29:41 2017 +0200
radeonsi: add separate HUD counters for CB and DB cache flushes
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b007744051b5f49a7ac69bebf57836a201e8dcbf
Author: Marek Olšák <marek.olsak at amd.com>
Date: Thu Jun 15 13:45:24 2017 +0200
st/mesa: don't set the border color if it's unused
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=743ad599a97d09b119d26b99f6b79e41b567e421
Author: Marek Olšák <marek.olsak at amd.com>
Date: Wed Jun 14 23:09:24 2017 +0200
st/mesa: don't set 16 scissors and 16 viewports if they're unused
Only do so if there is a shader writing gl_ViewportIndex.
This removes a lot of CPU overhead for the most common case.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2ec1e32d11ed788dfed229a569a238743b9b1f9f
Author: Marek Olšák <marek.olsak at amd.com>
Date: Wed Jun 14 23:02:04 2017 +0200
st/mesa: fix pipe_rasterizer_state::scissor with multiple viewports
Cc: 17.1 <mesa-stable at lists.freedesktop.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d7e52327f0ad7e01d071b09d0e9bfd2822a855a9
Author: Marek Olšák <marek.olsak at amd.com>
Date: Wed Jun 14 22:45:13 2017 +0200
st/mesa: simplify st_update_viewport
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a8753b254d86b8b791dcbb4d3484be1a35c5e792
Author: Marek Olšák <marek.olsak at amd.com>
Date: Wed Jun 14 22:37:31 2017 +0200
st/mesa: remove redundant sample_mask checking
cso does that too
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2108b73cf37b103cea51a906711733afbbb5a7af
Author: Marek Olšák <marek.olsak at amd.com>
Date: Wed Jun 14 22:36:28 2017 +0200
st/mesa: use precomputed st_fb_orientation
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=91579254db234cbeb60948063c5f30400d1a7e6c
Author: Marek Olšák <marek.olsak at amd.com>
Date: Wed Jun 14 14:46:43 2017 +0200
mesa: don't call _mesa_update_clip_plane in the GL core profile
It uses the projection matrix to transform the clip plane.
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=602a3e50e555197a10a0c1a1dda166fa8cf7053f
Author: Marek Olšák <marek.olsak at amd.com>
Date: Wed Jun 14 18:31:06 2017 +0200
st/mesa: set st_context::...num_samplers to 0 when there are no samplers
This was missed during my st/mesa series.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f368ea37a2cd79051abf3be46c6bb1444aa05244
Author: Marek Olšák <marek.olsak at amd.com>
Date: Mon Jun 12 19:29:37 2017 +0200
st/mesa: unify fail paths for update_single_texture
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d14bb37a0a5c29793a41221be0cb8f8faa497ae0
Author: Marek Olšák <marek.olsak at amd.com>
Date: Mon Jun 12 01:27:26 2017 +0200
st/mesa: don't call u_sampler_view_default_template for sampler views
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bfe1e7737a76e3b046881976dd21c829ab5eccb0
Author: Marek Olšák <marek.olsak at amd.com>
Date: Mon Jun 12 01:20:34 2017 +0200
st/mesa: always set sampler swizzle according to the texture base format
Mainly don't (indirectly) call util_format_description here.
If the driver supports texture swizzling, this will always do the right
thing. If the driver doesn't support it, it doesn't matter.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=25723857d95e40147e59e3fda5b5fba1b41ec5a4
Author: Marek Olšák <marek.olsak at amd.com>
Date: Mon Jun 12 01:15:59 2017 +0200
st/mesa: samplers only need to track whether GLSL >= 130
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3ee1c9b1263adcf68ca7c376d29c94a0fc31b2b0
Author: Marek Olšák <marek.olsak at amd.com>
Date: Mon Jun 12 01:04:34 2017 +0200
st/mesa: simplify get_texture_format_swizzle
- Don't check GL_NONE (that was only for buffers).
- Don't use util_format_is_depth_or_stencil.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f0ecd36ef8e10c087738c92cf62bad3815366963
Author: Marek Olšák <marek.olsak at amd.com>
Date: Mon Jun 12 01:00:04 2017 +0200
st/mesa: add an entirely separate codepath for setting up buffer views
Remove handling of buffers from all texture paths.
This simplifies things for both buffers and textures.
get_sampler_view_format is also cleaned up not to call
util_format_is_depth_and_stencil.
v2: also update st_NewTextureHandle
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com> (v1)
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fbd9cc61694dcb59b3d2a742073ed231f848702d
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sun Jun 11 01:41:40 2017 +0200
st/mesa: don't return an error from update_single_texture
It can just return a NULL sampler view, which is better than not doing
anything at all.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6f4ead6bfd75610de96fcf142596df3dbb93a648
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sun Jun 11 01:40:15 2017 +0200
st/mesa: clean up trivial dereferences in update_textures
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5766c18f593d494e95a3334a65f3d22debf83e6e
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sun Jun 11 01:37:18 2017 +0200
st/mesa: don't check MaxTextureImageUnits in update_textures
The linker takes care of it.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4c0bce921bb7cf440703c0a93f66589fef7d429b
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sun Jun 11 01:32:19 2017 +0200
st/mesa: don't call st_shader_stage_to_ptarget in update_textures
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c9a16fde807aa6b054758d0e0b62f802096e20dd
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sun Jun 11 01:08:37 2017 +0200
cso: inline a few frequently-used functions
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0e0fc1ce71317b759f88ce8fd04912f60f767015
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 23:23:56 2017 +0200
cso: don't return errors from sampler functions
No code checks the errors.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4d6fab245eec3880e2a59424a579851f44857ce8
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 23:12:25 2017 +0200
cso: don't track the number of sampler states bound
This removes 2 loops from hot codepaths and adds 1 loop to a rare codepath
(restore_sampler_states), and makes sanitize_hash() slightly worse.
Sampler states, when bound, are not unbound for draw calls that don't need
them. That's OK, because bound sampler states don't add any overhead.
This results in lower CPU overhead in most cases.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c8459846905bf7adfb6b5010a77aee9269228bdb
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 22:44:10 2017 +0200
st/mesa: sink and simplify texBaseFormat getting for sampler states
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8aba778fa2cd98a0b5a7429d3c5057778a0c808c
Author: Marek Olšák <marek.olsak at amd.com>
Date: Thu Jun 15 03:00:59 2017 +0200
st/mesa: don't set sampler states for TBOs
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=222a910a9bff5f4138794e0ef69775a1acdad35a
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 22:34:34 2017 +0200
st/mesa: optimize sampler state translation code
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=39ab9fb36c8c41ed06cd8f272d17285c6c5cd56b
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 22:13:48 2017 +0200
st/mesa: sink code needed for apply_texture_swizzle_to_border_color
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=588371b77229324c91a59180a2d623dde9830957
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 21:59:07 2017 +0200
st/mesa: simplify update_shader_samplers
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=18d498a1ae5eb8c3186847c96a6934ef5a82c6ab
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 21:57:20 2017 +0200
st/mesa: when binding sampler states, don't check the max sampler limit
The GLSL linker takes care of it.
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fd86876fe4abcdd0d7d77f05eb24fadc985f2530
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 21:39:16 2017 +0200
st/mesa: don't unbind sampler states if none are used
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b43c887a9bf1e3fb99b0dc22bfea5db81375a06e
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 20:13:14 2017 +0200
st/mesa: unify update_gp/tcp/tep code
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=56a28ace35c513ba22d754192127c359c28ed7e5
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 20:05:24 2017 +0200
st/mesa: don't search through shader variants if there is only one
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=dbf1413014b85a9b99322c46bff6b3183d0b0439
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 19:58:06 2017 +0200
st/mesa: don't track shader variants in st_context
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1c818fff0cbce5fce1d3d1b6cd273797e6fa80d6
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 19:36:11 2017 +0200
st/mesa: move blend color into its own state atom
This is now sensible thanks to the NewBlendColor flag.
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0b03d82f9c8041043be0928f557a16ec0fcd1c7d
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 02:15:34 2017 +0200
st/mesa: check correctly if multisampling is enabled
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9c499e6759b26c5e9c5a16e306624adee4bca8d6
Author: Marek Olšák <marek.olsak at amd.com>
Date: Tue Jun 20 21:32:28 2017 +0200
st/mesa: don't invoke st_finalize_texture & st_convert_sampler for TBOs
This is a v2 of the previous patch (v1 didn't skip st_finalize_texture).
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c0ed52f6146c7e24e1275451773bd47c1eda3145
Author: Marek Olšák <marek.olsak at amd.com>
Date: Mon Jun 12 00:49:15 2017 +0200
mesa: simplify _mesa_is_image_unit_valid for buffers
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=caf39d6df9de145060d7def72c20ca45e41b1e9c
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 17:22:09 2017 +0200
mesa: don't flag _NEW_PROGRAM_CONSTANTS for GLSL programs for st/mesa
v2: also update _mesa_uniform_handle for bindless textures
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com> (v1)
Reviewed-by: Brian Paul <brianp at vmware.com> (v1)
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com> (v1)
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b7ba745032900643af7bcfdc773a783b73e2735a
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Sat Sep 13 11:13:26 2014 -0700
glsl: Track whether uniforms are active per stage
for finer granularity state flagging
v2: Marek - use a bitmask, add shader cache support
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=670c4dd3957efe0022a3ac36074fd89a5873d953
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 17:22:09 2017 +0200
mesa: don't flag _NEW_PROGRAM_CONSTANTS for non-GLSL programs for st/mesa
This has the benefit that we get to set up constants for exactly
the shader stage that needs it.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0b70d6ec568a2c5d7b2ff814e6e26b6d1379c829
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 15:41:22 2017 +0200
mesa: flush vertices before updating ctx->_Shader
Cc: 17.1 <mesa-stable at lists.freedesktop.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0160a59f295462f77d01693e9515e283c55ec2da
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 12:38:13 2017 +0200
mesa: set driver flags for glPopAttrib(GL_ENABLE_BIT) properly
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=df0f6a0af31c63e6b66657fbc01c0955558fc282
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 12:31:33 2017 +0200
mesa: don't flag _NEW_POLYGON_STIPPLE for st/mesa
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=58a02196b99d375481af5abfdcba967167f99d7a
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 12:25:50 2017 +0200
mesa: don't flag _NEW_LINE for st/mesa
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bc871a1baf8979310eb7adc1b87342e389616027
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 12:18:34 2017 +0200
mesa: don't flag _NEW_POLYGON for st/mesa
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=00173d91b70ae4dcea7c6324ee4858c498cae14b
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 12:09:43 2017 +0200
mesa: don't flag _NEW_TRANSFORM for st/mesa if possible
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=55f1106637a122f6b6c91d45acb721398328cc17
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 11:55:50 2017 +0200
mesa: don't flag _NEW_TRANSFORM for Transform.RasterPositionUnclipped
It's not a driver state, it's for glRasterPos.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1f3dc332f5b5c7fd9defd0cebeee92ff8511cee8
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 11:51:40 2017 +0200
mesa: don't flag _NEW_TRANSFORM for primitive restart
It's a draw state.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=29db5c1dcc5940fd18e72d1a7295cbb9edb424d8
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 02:39:06 2017 +0200
mesa: don't flag _NEW_VIEWPORT for st/mesa if possible
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c8363eb0276c863100a457b18fee5ef900cf6f74
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 02:28:05 2017 +0200
mesa: flush vertices before changing viewports
Cc: 17.1 <mesa-stable at lists.freedesktop.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=86840d3f08ec1f3cf6f02979ef1875087aef2724
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 02:14:15 2017 +0200
mesa: don't flag _NEW_MULTISAMPLE for st/mesa
There are several new driver flags here so that it maps nicely to gallium.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=581d77315bdb2338e97133a05fa8c354352f5fd8
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 01:46:34 2017 +0200
mesa: don't flag _NEW_COLOR for st/mesa if possible
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b677e96078889140ad1549cb7b94b0a33c10f7ba
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 01:07:59 2017 +0200
mesa: use DriverFlags.NewAlphaTest to communicate alphatest changes to st/mesa
Now AlphaFunc avoids the blend state update in st/mesa and avoids
_mesa_update_state_locked.
The GL_ALPHA_TEST enable won't trigger blend state updates in st/mesa
after st/mesa stops relying on _NEW_COLOR.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=37b834923d31bb170ffbfac882476659060b78b2
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 00:58:04 2017 +0200
mesa: don't flag _NEW_DEPTH for st/mesa
skipping _mesa_update_state_locked
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a9315627bc35d5447484a804ecd891c8711a49d3
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 00:52:51 2017 +0200
mesa: make _mesa_set_varying_vp_inputs a no-op in GL core profile
just don't set _NEW_VARYING_VP_INPUTS.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=95d9fdc6f8c1880ec7c814b0d2e6c823e6b0586b
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 00:48:53 2017 +0200
mesa: remove _NEW_BUFFER_OBJECT
not used
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=be15028ede59bc1936be315321e8add7553641f3
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 00:30:18 2017 +0200
mesa: don't flag _NEW_SCISSOR for st/mesa
Not needed and we get to bypass _mesa_update_state_locked that would be
a no-op.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=124df5d71a051b6e7d46ac45331ad21bfd1df029
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 00:14:11 2017 +0200
mesa: don't execute most of _mesa_update_state_locked for GL core profile
There is plenty of legacy stuff here.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9c1a6a208269dd2bef819a99d58a0a8bf04b2793
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Jun 10 00:01:21 2017 +0200
mesa: simplify handling the return value of update_program
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bc4e914f959efe61edc47f2b159bed527808475b
Author: Marek Olšák <marek.olsak at amd.com>
Date: Fri Jun 9 23:54:16 2017 +0200
mesa: simplify a loop in _mesa_update_texture_state
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=68a0e15f44cf351eab97a734b1cffeade1873fdf
Author: Marek Olšák <marek.olsak at amd.com>
Date: Fri Jun 9 23:27:41 2017 +0200
mesa: replace VP/FP/ATIfs _Enabled flags with helper functions
These are only used in the GL compatibility profile.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=585c5cf8a514783d9ed31dba3aa432797dd5f0e8
Author: Marek Olšák <marek.olsak at amd.com>
Date: Fri Jun 9 22:19:33 2017 +0200
mesa: don't update draw buffer bounds in _mesa_update_state
st/mesa doesn't need the draw bounds for draw calls. I've added the call
where it's necessary in core Mesa and drivers, but I suspect that most
drivers can just move the call to the right places.
The core Mesa places aren't hot paths, so the call overhead doesn't matter
there.
For now, only st/mesa is made such that this function is invoked very
rarely.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ab784e0feeaa6af46afc5ee6ce3527324de29dea
Author: Marek Olšák <marek.olsak at amd.com>
Date: Fri Jun 9 22:47:16 2017 +0200
mesa: remove update_framebuffer_size
For the default framebuffer, _mesa_resize_framebuffer updates it.
For FBOs, _mesa_test_framebuffer_completeness updates it.
This code is redundant.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e7a091936fb6fd578c6ced9baa38b306b638a11b
Author: Marek Olšák <marek.olsak at amd.com>
Date: Fri Jun 9 21:42:12 2017 +0200
mesa: replace ctx->Polygon._FrontBit with a helper function
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c19b08b079da566d5c377c1ff4fe0ae6ac980003
Author: Marek Olšák <marek.olsak at amd.com>
Date: Fri Jun 9 21:27:18 2017 +0200
mesa: replace ctx->VertexProgram._TwoSideEnabled with a helper function
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=480bf7731bf54ac936ec7edfa977aeeb377745b6
Author: Marek Olšák <marek.olsak at amd.com>
Date: Fri Jun 9 20:51:20 2017 +0200
mesa: stop using _NEW_STENCIL with st/mesa, use DriverFlags.NewStencil instead
This bypasses _mesa_update_state_locked.
Before:
DrawElements ( 1 VBOs, 4 UBOs, 8 Tex) w/ stencil enable change: 3.99 million
DrawArrays ( 1 VBOs, 4 UBOs, 8 Tex) w/ stencil enable change: 4.56 million
After:
DrawElements ( 1 VBOs, 4 UBOs, 8 Tex) w/ stencil enable change: 4.93 million
DrawArrays ( 1 VBOs, 4 UBOs, 8 Tex) w/ stencil enable change: 5.84 million
It's quite a difference in the draw call rate when ctx->NewState stays
equal to 0 the whole time.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c2408838c83719cb133332c7adac71ef50503259
Author: Marek Olšák <marek.olsak at amd.com>
Date: Fri Jun 9 20:37:34 2017 +0200
mesa: replace _mesa_update_stencil() with helper functions
The idea is to remove the dependency on _mesa_update_state_locked,
so that st/mesa can skip it for stencil state updates, and then stop
setting _NEW_STENCIL in mesa/main if the driver is st/mesa.
The main motivation is to stop invoking _mesa_update_state_locked for
certain state groups.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d28cc798bdf10c7e85189dc2dc3461d63e2fbfc7
Author: Marek Olšák <marek.olsak at amd.com>
Date: Tue Jun 20 13:44:31 2017 +0200
meta: do the full FBO completeness check in decompress_texture_image
_mesa_update_state will no longer recompute Width/Height if the framebuffer
is complete. We now rely on the FBO completeness check to do it.
The only code that needs to be fixed seems to be this one.
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
Tested-by: Ian Romanick <ian.d.romanick at intel.com>
More information about the mesa-commit
mailing list