aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* st/mesa: don't serialize all streamout state if there are no SO outputsMarek Olšák2019-11-261-4/+15
| | | | Reviewed-by: Timothy Arceri <[email protected]>
* mapi: add GetInteger64vEXT with EXT_disjoint_timer_queryTapani Pälli2019-11-261-1/+3
| | | | | | | | | | | | | From EXT_disjoint_timer_query spec: "Interaction: This extension adds GetInteger64vEXT if OpenGL ES 3.0 is not supported" See https://github.com/KhronosGroup/OpenGL-Registry/issues/326. Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2090 Signed-off-by: Tapani Pälli <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
* Revert "st/mesa: keep serialized NIR instead of nir_shader in st_program"Mark Janes2019-11-204-69/+11
| | | | | | | This reverts commit db0c89d4bffa01ab15dfa819dbb518739131e1a9. Gitlab: mesa/mesa#2128 Acked-by: Marek Olšák <[email protected]>
* Revert "st/mesa: call nir_serialize only once per shader"Mark Janes2019-11-203-25/+22
| | | | | | This reverts commit 3a8d6868897c7dfe72bac09c1eddd551144ca751. Acked-by: Marek Olšák <[email protected]>
* mesa: enable ARB_shading_language_includeTimothy Arceri2019-11-201-1/+1
| | | | | | Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/999 Reviewed-by: Witold Baryluk <[email protected]>
* mesa: implement glCompileShaderIncludeARB()Timothy Arceri2019-11-201-3/+63
| | | | Reviewed-by: Witold Baryluk <[email protected]>
* mesa: add shader include lookup support for relative pathsTimothy Arceri2019-11-201-10/+75
| | | | Reviewed-by: Witold Baryluk <[email protected]>
* mesa: add support cursor support for relative path shader includesTimothy Arceri2019-11-202-0/+19
| | | | | | | | | | | | | 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 <[email protected]>
* mesa: implement glDeleteNamedStringARB()Timothy Arceri2019-11-201-0/+25
| | | | | Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Reviewed-by: Witold Baryluk <[email protected]>
* mesa: split _mesa_lookup_shader_include() in twoTimothy Arceri2019-11-201-4/+14
| | | | | | | | The new local function lookup_shader_include() will be used by glDeleteNamedStringARB() in the following patch. Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Reviewed-by: Witold Baryluk <[email protected]>
* mesa: implement glGetNamedStringivARB()Timothy Arceri2019-11-201-0/+28
| | | | | Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Reviewed-by: Witold Baryluk <[email protected]>
* mesa: implement glIsNamedStringARB()Timothy Arceri2019-11-201-1/+14
| | | | | Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Reviewed-by: Witold Baryluk <[email protected]>
* mesa: make error checking optional in _mesa_lookup_shader_include()Timothy Arceri2019-11-202-10/+19
| | | | | | | | | This will be usefull when implementing glIsNamedStringARB() which doesn't do error checking, it just returns false for invalid lookups instead. Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Reviewed-by: Witold Baryluk <[email protected]>
* mesa: implement glGetNamedStringARB()Timothy Arceri2019-11-201-0/+22
| | | | | Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Reviewed-by: Witold Baryluk <[email protected]>
* mesa: add glNamedStringARB() supportTimothy Arceri2019-11-201-0/+59
| | | | | Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Reviewed-by: Witold Baryluk <[email protected]>
* mesa: add copy_string() helperTimothy Arceri2019-11-201-0/+20
| | | | | | | | This will be used by the various ARB_shading_language_include functions in the following patches. Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Reviewed-by: Witold Baryluk <[email protected]>
* mesa: add _mesa_lookup_shader_include() helperTimothy Arceri2019-11-202-0/+37
| | | | | | | This will be used both by the glsl compiler and the GL API. Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Reviewed-by: Witold Baryluk <[email protected]>
* mesa: add helper to validate tokenise shader include pathTimothy Arceri2019-11-201-0/+82
| | | | | Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Reviewed-by: Witold Baryluk <[email protected]>
* mesa: add ARB_shading_language_include infrastructure to gl_shared_stateTimothy Arceri2019-11-204-0/+77
| | | | | Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Reviewed-by: Witold Baryluk <[email protected]>
* glsl: add infrastructure for ARB_shading_language_includeTimothy Arceri2019-11-201-0/+1
| | | | | Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Reviewed-by: Witold Baryluk <[email protected]>
* mesa: add ARB_shading_language_include stubsTimothy Arceri2019-11-203-6/+65
| | | | | Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Reviewed-by: Witold Baryluk <[email protected]>
* nir: move data.image.access to data.accessMarek Olšák2019-11-191-1/+1
| | | | | | The size of the data structure doesn't change. Reviewed-by: Connor Abbott <[email protected]>
* st/mesa: call nir_serialize only once per shaderMarek Olšák2019-11-193-22/+25
| | | | | | It was called twice. Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
* st/mesa: keep serialized NIR instead of nir_shader in st_programMarek Olšák2019-11-194-11/+69
| | | | | | | | | | This decreases memory usage, because serialized NIR is more compact. If shader_has_one_variant is true and the shader is uncached, the first variant is created from nir_shader, otherwise the first variant and all other variants are created from serialized NIR. Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
* st/mesa: call nir_sweep in st_finalize_nirMarek Olšák2019-11-192-2/+3
| | | | | This is invoked sooner before (pre-)compiling the first variant and is also applied to fixed-func and ARB programs.
* st/mesa: subclass st_vertex_program for VP-specific membersMarek Olšák2019-11-199-80/+92
| | | | | | | Inheritance: gl_program -> st_program -> st_vertex_program Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
* st/mesa: more cleanups after unification of st_vertex/common_programMarek Olšák2019-11-191-44/+19
| | | | Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
* st/mesa: rename occurences of stcp to stp to correspond to st_programMarek Olšák2019-11-193-23/+23
| | | | Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
* st/mesa: cleanups after unification of st_vertex/common programMarek Olšák2019-11-194-140/+55
| | | | Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
* st/mesa: rename st_common_program to st_programMarek Olšák2019-11-1917-131/+131
| | | | Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
* st/mesa: trivially merge st_vertex_program into st_common_programMarek Olšák2019-11-1914-103/+69
| | | | | | | a later commit will add back st_vertex_program as a subclass of st_common_program Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
* st/mesa: consolidate and simplify code flagging program::affected_statesMarek Olšák2019-11-195-30/+20
| | | | Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
* st/mesa: initialize affected_states and uniform storage earlier in deserializeMarek Olšák2019-11-191-3/+3
| | | | | | | | | | This matches the uncached codepath. affected_states was used before initialization, which was technically a bug, but probably not reproducible due to _NEW_PROGRAM rebinding everything. Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
* st/mesa: start deduplicating some program codeMarek Olšák2019-11-194-13/+13
| | | | Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
* st/mesa: decrease the size of st_fp_variant_key from 48 to 40 bytesMarek Olšák2019-11-191-3/+3
| | | | Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
* st/mesa: rename delete_basic_variant -> delete_common_variantMarek Olšák2019-11-191-4/+4
| | | | Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
* mesa: fix warning in 32 bits buildPierre-Eric Pelloux-Prayer2019-11-191-1/+1
| | | | | Fixes: febedee4f6c ("mesa: add EXT_dsa glGetVertexArray* 4 functions") Reviewed-by: Marek Olšák <[email protected]>
* mesa: enable EXT_direct_state_accessPierre-Eric Pelloux-Prayer2019-11-191-0/+1
| | | | | | | | | | Always enabled; this doesn't require any driver work, it's just core mesa bits. quick_gl.txt is also updated because previously piglit ext_dsa tests were skipped. Reviewed-by: Marek Olšák <[email protected]>
* mesa: add ARB_sparse_buffer NamedBufferPageCommitmentEXT functionPierre-Eric Pelloux-Prayer2019-11-193-0/+25
| | | | | | | The spec is unclear on how to handle the buffer argument so we reuse the logic from the EXT_direct_state_access spec. Reviewed-by: Marek Olšák <[email protected]>
* mesa: add ARB_vertex_attrib_binding glVertexArray* functionsPierre-Eric Pelloux-Prayer2019-11-193-5/+120
| | | | | | | We can't simply alias ARB_direct_state_access functions because those fail if the vao has never been bound before. Reviewed-by: Marek Olšák <[email protected]>
* mesa: extend vertex_array_attrib_format to support EXT_dsaPierre-Eric Pelloux-Prayer2019-11-191-12/+6
| | | | Reviewed-by: Marek Olšák <[email protected]>
* mesa: implement ARB_texture_storage_multisample + EXT_dsa functionsPierre-Eric Pelloux-Prayer2019-11-193-2/+60
| | | | Reviewed-by: Marek Olšák <[email protected]>
* mesa: add ARB_texture_buffer_range glTextureBufferRangeEXT functionPierre-Eric Pelloux-Prayer2019-11-193-1/+51
| | | | Reviewed-by: Marek Olšák <[email protected]>
* mesa: add ARB_instanced_arrays EXT_dsa functionPierre-Eric Pelloux-Prayer2019-11-193-0/+52
| | | | Reviewed-by: Marek Olšák <[email protected]>
* mesa: add ARB_clear_buffer_object named functionsPierre-Eric Pelloux-Prayer2019-11-193-2/+46
| | | | Reviewed-by: Marek Olšák <[email protected]>
* mesa: add ARB_vertex_attrib_64bit VertexArrayVertexAttribLOffsetEXTPierre-Eric Pelloux-Prayer2019-11-193-0/+39
| | | | Reviewed-by: Marek Olšák <[email protected]>
* mesa: add ARB_framebuffer_no_attachments named functionsPierre-Eric Pelloux-Prayer2019-11-193-2/+86
| | | | | | | | | | | The wording in ARB_framebuffer_no_attachments and EXT_direct_state_access is different. In the former framebuffer names must have been generated using glGenFramebuffers before using the named functions. In the latter framebuffer names have no such constraints, so we can't use the _mesa_lookup_framebuffer_dsa function. Reviewed-by: Marek Olšák <[email protected]>
* i965: Ensure that all 2101010 image imports can pass framebuffer completeness.Miguel Casas-Sanchez2019-11-191-2/+6
| | | | | | | | | | | Chrome OS would like to import and render to any supported format that has a corresponding display plane format, and this prevents throwing framebuffer incomplete for FBOs using these textures. See: crbug.com/949260 Reviewed-by: Tapani Pälli <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
* Call shmget() with permission 0600 instead of 0777Brian Paul2019-11-181-1/+2
| | | | | | | | | | | | | | A security advisory (TALOS-2019-0857/CVE-2019-5068) found that creating shared memory regions with permission mode 0777 could allow any user to access that memory. Several Mesa drivers use shared- memory XImages to implement back buffers for improved performance. This path changes the shmget() calls to use 0600 (user r/w). Tested with legacy Xlib driver and llvmpipe. Cc: [email protected] Reviewed-by: Kristian H. Kristensen <[email protected]>
* intel/compiler: Add a flag to avoid compacting push constantsJason Ekstrand2019-11-181-0/+1
| | | | | | | In vec4, we can just not run the pass. In fs, things are a bit more deeply intertwined. Reviewed-by: Lionel Landwerlin <[email protected]>