st/omx/enc: replace omx buffer with texture buffer

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
st/omx/enc: implement frame reordering and B-frames

Signed-off-by: Christian König <christian.koenig@amd.com>
mesa/st: enable EXT_shader_integer_mix when NativeIntegers is on

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
i965/disasm: Remove tables with obvious mappings.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
i965/disasm: Fix s/xoo/xor/ typo.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
i965: Use uint16_t for control/src index tables.

No need to use 32-bits to store 15 and 12.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
i965: Make Broadwell HiZ path arrange for TC flushes.

HiZ operations make the depth/render caches out of sync with the sampler
caches.  We need to arrange for a TC flush to happen before the target
buffer is used by the sampler.  Calling brw_render_cache_set_add_bo
makes that happen.

On previous generations, brw_blorp_exec took care of flushing the
texture cache by calling intel_batchbuffer_emit_mi_flush after doing
any rendering.  If we were to use the normal drawing path, then
brw_postdraw_set_buffers_need_resolve would handle this.

On Broadwell, we don't use BLORP, and we don't emit a rectangle
primitive via the normal drawing path.  The 3DSTATE_WM_HZ_OP and
PIPE_CONTROL implicitly make drawing happen.  So, none of our existing
code makes this flush happen - we need to do it directly.

Fixes 11 Piglit copyteximage subtests.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=77223
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=77226
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
glsl: make static constant variables "static const"

This allows them to be moved to .rodata, and allow us to be sure that they
will not be modified.

Signed-off-by: Chia-I Wu <olv@lunarg.com>
glsl: protect locale_t with a mutex

There may be two contexts compiling shaders at the same time.  locale_t needs
to be protected.

Signed-off-by: Chia-I Wu <olv@lunarg.com>
glsl: protect anonymous struct id with a mutex

There may be two contexts compiling shaders at the same time, and we want the
anonymous struct id to be globally unique.

Signed-off-by: Chia-I Wu <olv@lunarg.com>
glsl: protect glsl_type with a mutex

glsl_type has several static hash tables and a static ralloc context.  They
need to be protected by a mutex as they are not thread-safe.

Signed-off-by: Chia-I Wu <olv@lunarg.com>
mesa: refactor _mesa_get_debug_state

Move gl_debug_state allocation to a new function, debug_create.

Signed-off-by: Chia-I Wu <olv@lunarg.com>
mesa: refactor debug output should_log

Move the message filtering logic to debug_is_message_filtered.

Signed-off-by: Chia-I Wu <olv@lunarg.com>
mesa: refactor debug output set_message_state

Move message state update to debug_set_message_filter.

Signed-off-by: Chia-I Wu <olv@lunarg.com>
mesa: refactor debug out log_msg

Move message logging to debug_log_message.

Signed-off-by: Chia-I Wu <olv@lunarg.com>
mesa: refactor debug output get_msg

Move message fetching to debug_fetch_message and message deletion to
debug_delete_messages.

Signed-off-by: Chia-I Wu <olv@lunarg.com>
mesa: refactor debug output control_messages

Move most of the code to debug_set_default_filter.

Signed-off-by: Chia-I Wu <olv@lunarg.com>
mesa: refactor _mesa_PushDebugGroup

Move group copying to debug_push_group.  Save group message in the group
before pushing instead of after.

Signed-off-by: Chia-I Wu <olv@lunarg.com>
mesa: refactor _mesa_PopDebugGroup and _mesa_free_errors_data

Move group clearing to debug_clear_group.  Add debug_pop_group and
debug_destroy for use in _mesa_PopDebugGroup and _mesa_free_errors_data
respectively.

Signed-off-by: Chia-I Wu <olv@lunarg.com>
mesa: refactor _mesa_GetDebugMessageLog

Merge get_msg into the function.

Signed-off-by: Chia-I Wu <olv@lunarg.com>