summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* util/u_atomic: Add _InterlockedExchangeAdd8/16 for older MSVC.Jose Fonseca2015-02-121-4/+33
| | | | | | | | We need to build certain parts of Mesa (namely gallium, llvmpipe, and therefore util) with Windows SDK 7.0.7600, which includes MSVC 2008. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]>
* util/u_atomic: Test p_atomic_add() for 8bit integers.Jose Fonseca2015-02-121-15/+17
| | | | | Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]>
* egl: Soften several HAVE_DRM_PLATFORM to HAVE_LIBDRMAxel Davy2015-02-121-7/+7
| | | | | | | | | | | | | | | | | | | | | To fix build when libdrm is not found, commit a594cec7e3ef275c386054127a357110a19dd823 did put several parts of egl code under #ifdef HAVE_DRM_PLATFORM. HAVE_DRM_PLATFORM means the egl drm platform is being built. What should have been used instead is HAVE_LIBDRM. At a few locations, the HAVE_DRM_PLATFORM introduced have already been replaced by HAVE_LIBDRM, this patch replaces the remaining occurences. This patch makes for example EGL_EXT_image_dma_buf_import be advertised by egl under x11 when the drm egl platform is not built, whereas previously it required the drm egl platform to be built. Signed-off-by: Axel Davy <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
* auxiliary/vl: bring back the VL code for the dri targetsEmil Velikov2015-02-128-6/+25
| | | | | | | | | | | | | | | | | With commit c642e87d9f4(auxiliary/vl: rework the build of the VL code) we split out the VL code into a separate static library that was meant to be used by the VL targets alone - va, vdpau, xvmc. The commit failed to consider the way we handle vdpau-gl interop and broke it. Bring back the functionality by keeping the vl <> vl_stub separation as requrested by Christian. v2: Update the omx target as well. Update mesa-stable email address. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=86837 Cc: "10.5" <[email protected]> Signed-off-by: Emil Velikov <[email protected]> Tested-by: Andy Furniss <[email protected]>
* nir: add missing header to the sources listEmil Velikov2015-02-121-0/+1
| | | | | | | Cc: "10.5" <[email protected]> Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Connor Abbott <[email protected]> Reviewed-by: Matt Turner <[email protected]>
* nir: resolve nir.h dependency list (fix make distcheck)Emil Velikov2015-02-121-1/+1
| | | | | | | | | | Use nir/nir_opcodes.h as is (w/o the absolute path), as it is the target name used to generate the actual file. Otherwise the target is missing, the file won't get generated and the build will fail. Cc: "10.5" <[email protected]> Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Matt Turner <[email protected]>
* i965/vs/skl: Use vec4 datatypes for message headerBen Widawsky2015-02-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | We're using a SIMD4x2 sampler message, which has execsize 4, and so the register width must be <= 4. Use <4,4,1> regioning instead of <8,8,1> regioning to access the same data but avoid tripping the assert. Fixes the following piglit tests: spec/glsl-1.20/compiler/structure-and-array-operations/array-selection.vert spec/glsl-es-3.00/compiler/uniform_block/interface-name-basic.vert spec/glsl-es-3.00/compiler/uniform_block/interface-name-field-clashes-with-struct.vert spec/glsl-es-3.00/compiler/uniform_block/interface-name-field-clashes-with-function.vert spec/glsl-es-3.00/compiler/uniform_block/interface-name-array.vert glslparsertest/glsl2/condition-07.vert spec/glsl-es-3.00/compiler/uniform_block/interface-name-field-clashes-with-variable.vert v2: Better commit message courtesy of Ken. I had a discussion with Ken, and we both question how we end up with a mov and execsize 4. For now though, this fixes the piglit tests, so we can worry about it later. Signed-off-by: Ben Widawsky <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
* ilo: update screen init for Gen8Chia-I Wu2015-02-121-8/+32
| | | | | This is very preliminary and is only tested with glxgears. All information about Gen8 is derived from i965 and beignet.
* ilo: update outdated render command emissions for Gen8Chia-I Wu2015-02-121-4/+4
|
* ilo: update rectlist command emission for Gen8Chia-I Wu2015-02-124-7/+93
|
* ilo: update draw command emission for Gen8Chia-I Wu2015-02-126-34/+517
|
* ilo: update surface state emission for Gen8Chia-I Wu2015-02-121-7/+8
|
* ilo: update dynamic state emission for Gen8Chia-I Wu2015-02-121-14/+26
|
* ilo: update outdated gen assertions for Gen8Chia-I Wu2015-02-126-24/+23
|
* ilo: add new WM related helpers for Gen8Chia-I Wu2015-02-121-0/+76
|
* ilo: update VS related functions for Gen8Chia-I Wu2015-02-122-1/+31
|
* ilo: update VF related functions for Gen8Chia-I Wu2015-02-122-42/+157
|
* ilo: update SAMPLER_STATE for Gen8Chia-I Wu2015-02-121-29/+42
|
* ilo: update SAMPLER_BORDER_COLOR_STATE for Gen8Chia-I Wu2015-02-121-2/+3
|
* ilo: update depth clear value for Gen8Chia-I Wu2015-02-121-1/+4
|
* ilo: update ilo_zs_surface for Gen8Chia-I Wu2015-02-125-82/+137
|
* ilo: update ilo_view_surface for Gen8Chia-I Wu2015-02-124-43/+141
|
* ilo: update texture layout for Gen8Chia-I Wu2015-02-121-1/+3
|
* ilo: update ilo_blend_state and related functions for Gen8Chia-I Wu2015-02-126-22/+319
|
* ilo: update ilo_dsa_state and related functions for Gen8Chia-I Wu2015-02-123-6/+89
|
* ilo: update multisample related states for Gen8Chia-I Wu2015-02-123-1/+116
|
* ilo: update WM and PS related functions for Gen8Chia-I Wu2015-02-122-76/+264
|
* ilo: update SBE related functions for Gen8Chia-I Wu2015-02-121-20/+97
|
* ilo: update SF related functions for Gen8Chia-I Wu2015-02-123-81/+267
|
* ilo: update CLIP related functions for Gen8Chia-I Wu2015-02-121-18/+20
|
* ilo: update SF_CLIP_VIEWPORT for Gen8Chia-I Wu2015-02-123-14/+40
|
* ilo: update streamout related functions for Gen8Chia-I Wu2015-02-123-44/+78
|
* ilo: update 3DSTATE_{DS,HS,GS} for Gen8Chia-I Wu2015-02-121-8/+24
|
* ilo: update 3DSTATE_CONSTANT_x for Gen8Chia-I Wu2015-02-121-3/+16
|
* ilo: update 3DSTATE_URB_x for Gen8Chia-I Wu2015-02-121-1/+8
|
* ilo: update 3DSTATE_PUSH_CONSTANT_ALLOC_x for Gen8Chia-I Wu2015-02-121-7/+8
|
* ilo: update render engine common helpers for Gen8Chia-I Wu2015-02-124-34/+91
|
* ilo: update BLT helpers for Gen8Chia-I Wu2015-02-121-25/+58
|
* ilo: update MI helpers for Gen8Chia-I Wu2015-02-122-30/+59
|
* ilo: add functions for Gen8 relocsChia-I Wu2015-02-121-6/+39
| | | | | Extend ilo_builder_writer_reloc() for Gen8 memory addressing. Add new wrappers, ilo_builder_surface_reloc64(() and ilo_builder_batch_reloc64().
* ilo: update the toy compiler for Gen8Chia-I Wu2015-02-125-91/+501
| | | | Based on what we know from the classic driver.
* ilo: update genhw headersChia-I Wu2015-02-1219-529/+1704
| | | | | | | Accumulated changes for various renames and additions, including Gen8 definitions. Some of the dynamic state __SIZE no longer means the size of an element, but the size of an array of elements. The changes can be seen in ilo_render_dynamic.c.
* ilo: clean up ilo_gpe_init_dsa()Chia-I Wu2015-02-121-54/+82
| | | | | Add dsa_get_stencil_enable_gen6(), dsa_get_depth_enable_gen6(), and dsa_get_alpha_enable_gen6() to be called from ilo_gpe_init_dsa().
* ilo: clean up ilo_gpe_init_blend()Chia-I Wu2015-02-123-87/+106
| | | | Make ilo_blend_state more space efficient and forward-looking.
* ilo: clean up sample patternsChia-I Wu2015-02-125-68/+71
| | | | | Use signed int for sample positions and add helpers to access them. Call them patterns instead of positions.
* glsl: Optimize (f2i(trunc x)) into (f2i x).Matt Turner2015-02-111-0/+9
| | | | | | total instructions in shared programs: 5950326 -> 5949286 (-0.02%) instructions in affected programs: 88264 -> 87224 (-1.18%) helped: 692
* glsl: Optimize round-half-up pattern.Matt Turner2015-02-111-0/+33
| | | | | Hurts some Psychonauts shaders, but after the next patch (which this enables) they're fewer instructions than before this patch.
* glsl: Add trunc() to ir_builder.Matt Turner2015-02-112-0/+6
|
* i965: Add LINTERP/CINTERP to can_do_cmod().Matt Turner2015-02-111-0/+2
| | | | | | | | | | | | LINTERP is implemented as a PLN instruction or a LINE+MAC. PLN and MAC can do conditional mod. CINTERP is just a MOV. total instructions in shared programs: 5952103 -> 5950284 (-0.03%) instructions in affected programs: 324573 -> 322754 (-0.56%) helped: 1819 We lose the SIMD16 in one Unigine Heaven shader which appears six times in shader-db.
* program: Remove _mesa_nop_vertex_program/_mesa_nop_fragment_program.Matt Turner2015-02-112-97/+0
| | | | | | | | | | | | Dead since commit 284ce20901b0c2cfab1d952cc129b8f3cd068f12 Author: Eric Anholt <[email protected]> Date: Fri Aug 20 10:52:14 2010 -0700 Remove remnants of the old glsl compiler. Reviewed-by: Kenneth Graunke <[email protected]>