aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gallivm/sample: handle size unit offsetDave Airlie2020-07-021-8/+10
| | | | | Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3778>
* llvmpipe/draw: wire up indirect offsetDave Airlie2020-07-022-0/+20
| | | | | | | This bounds checks and adds to the llvm index. Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3778>
* gallivm/sample: pass indirect offset into texture/image unitsDave Airlie2020-07-026-59/+70
| | | | | | | | | This isn't needed for the basic indirect code, but it is needed for texture size/image size unfortunately. They could be done with a super switch, but it seems simple to query them. Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3778>
* gallivm/nir: handle non-uniform texture offsetsDave Airlie2020-07-022-0/+59
| | | | | | | | | | | The way we construt vertex/geom shaders means these can diverge, so we have to just hammer it out manually, there are likely optimisation opportuniities in here Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3778>
* gallivm/nir: add texture unit indexingDave Airlie2020-07-022-1/+21
| | | | | | | This hooks up the index from NIR into the sampler code. Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3778>
* llvmpipe: add support for indirect texture access.Dave Airlie2020-07-021-4/+21
| | | | | | | | This hooks up the sampler switch statement generator to the llvmpipe sampler interface. Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3778>
* draw: add support for indirect texture accessDave Airlie2020-07-021-4/+21
| | | | | | | This hooks up the switch statement generator to the draw code. Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3778>
* gallivm: add indirect texture switch statement builder.Dave Airlie2020-07-022-0/+119
| | | | | | | | | | | This adds the apis to add an indirect accessor for arrays of textures, using an LLVM switch statement and per-texture sampler functions. It also adds the indexer to the sampler parameters Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3778>
* gallivm/sample: change texture function generator apiDave Airlie2020-07-021-9/+10
| | | | | | | | | This passes some more paramters in directly and changes how the returns are done in order to reuse this function for indirect texture support later. Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3778>
* llvmpipe: pass number of samplers into llvm sampler code.Dave Airlie2020-07-024-4/+8
| | | | | | | This is to be used later for indirect texture access Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3778>
* draw: pass nr_samplers into llvm sample state creation.Dave Airlie2020-07-023-6/+11
| | | | | | | This will be used later to handle indirect texture support. Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3778>
* nir: add missing break to nir_opt_access()Timothy Arceri2020-07-021-0/+1
| | | | | | | Fixes: f2d0e48ddc74 ("glsl/nir: Add optimization pass for access flags") Reviewed-by: Connor Abbott <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5714>
* egl: move fallthrough comment so gcc can see itTimothy Arceri2020-07-021-1/+1
| | | | | Acked-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5714>
* iris: add missing fallthrough commentTimothy Arceri2020-07-021-0/+1
| | | | | Reviewed-by: Lionel Landwerlin <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5714>
* intel/compiler: add and fix up fallthrough comments for gcc warningsTimothy Arceri2020-07-022-4/+4
| | | | | Reviewed-by: Lionel Landwerlin <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5714>
* anv: update fallthrough comment so gcc sees itTimothy Arceri2020-07-021-1/+1
| | | | | Reviewed-by: Lionel Landwerlin <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5714>
* gallivm: add missing breakTimothy Arceri2020-07-021-0/+1
| | | | | | | Fixes: 26c5ae80f0b5 ("llvmpipe: enable ARB_shader_group_vote") Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5714>
* llvmpipe: add missing fallthrough commentsTimothy Arceri2020-07-021-0/+3
| | | | | Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5714>
* i965: add and fix fallthrough commentsTimothy Arceri2020-07-024-6/+6
| | | | | Reviewed-by: Lionel Landwerlin <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5714>
* intel/compiler: Don't emit no-op cr0 changesMatt Turner2020-07-021-0/+3
| | | | | | | If mask is 0, we're asking for no changes to cr0. Reviewed-by: Lionel Landwerlin <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5566>
* intel/compiler: Add assert that set bits are within maskMatt Turner2020-07-021-2/+5
| | | | | | | | | | | | | We generate bitfields of bits that we want to retain (mask) and bits that we want to set (brw_mode) in the cr0 register, so the bits we want to set should be in the set of bits we want to retain. Also, remove the initialization of mask from fs_visitor::emit_shader_float_controls_execution_mode since brw_rnd_mode_from_nir initializes the mask parameter unconditionally. Reviewed-by: Lionel Landwerlin <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5566>
* gallium,util: undef ALIGN on FreeBSD to prevent name clashGreg V2020-07-012-0/+10
| | | | | | | | Some rare headers like ipc/shm and pthread_np cause machine/param.h to be included which defines a macro called ALIGN. Signed-off-by: Matt Turner <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3559>
* i965: Explicitly cast value to uint64_tEmmanuel2020-07-011-4/+4
| | | | | | | | | | | In FreeBSD x86 and aarch64 __u64 is typedef to unsigned long and is the same size as unsigned long long. Since we are explicitly specifying the format, cast the value to the proper type. Reviewed-by: Matt Turner <[email protected]> Signed-off-by: Emmanuel <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3559>
* iris: Explicitly cast value to uint64_tEmmanuel2020-07-011-2/+2
| | | | | | | | | | | In FreeBSD x86 and aarch64 __u64 is typedef to unsigned long and is the same size as unsigned long long. Since we are explicitly specifying the format, cast the value to the proper type. Reviewed-by: Matt Turner <[email protected]> Signed-off-by: Emmanuel <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3559>
* meson: Do not enable USE_ELF_TLS for FreeBSDEmmanuel2020-07-011-1/+1
| | | | | | | | | Compiling with this option result in too much TLS usage and FreeBSD cannot handle that. Reviewed-by: Eric Engestrom <[email protected]> Signed-off-by: Emmanuel <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3559>
* gitlab-ci: Do not create the "success" job when the test-docs job existsMichel Dänzer2020-07-011-5/+9
| | | | | | | | | | It's redundant in that case. v2: * Adapt to v2 of test-docs job rules. Reviewed-by: Daniel Stone <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5469>
* gitlab-ci: Extend .ci-run-policy template for docs jobsMichel Dänzer2020-07-011-9/+9
| | | | | | | | | | | | Requires using rules: in the pages job as well, so it doesn't inherit the rules from the template. v2: * Add comment explaining that cases not covered by explicit rules default to "when: never". Reviewed-by: Daniel Stone <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5469>
* gitlab-ci: Use rules: instead of except:/only: for test-docs jobMichel Dänzer2020-07-011-7/+11
| | | | | | | | | | | | | | Only run the job automatically for Marge Bot, otherwise let it be triggered manually. v2: * Never run this job for the main project, since it's only needed in pre-merge pipelines. * Add comment explaining that cases not covered by explicit rules default to "when: never". Reviewed-by: Daniel Stone <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5469>
* ci: move test-docs to container stageErik Faye-Lund2020-07-011-4/+5
| | | | | | | | While we're at it, rename it to reflect that we're now also testing docs here. Reviewed-by: Michel Dänzer <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5469>
* ci: move deploy-stage later in the pipelineErik Faye-Lund2020-07-011-1/+1
| | | | | | | This makes it not clutter up the pipeline results page so much. Reviewed-by: Michel Dänzer <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5469>
* ci: test docs for non-master buildsErik Faye-Lund2020-07-011-1/+14
| | | | | | | This ensures that we test on CI before merge-requests gets merged. Reviewed-by: Michel Dänzer <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5469>
* ci: only build docs if any docs changedErik Faye-Lund2020-07-011-1/+5
| | | | | | Reviewed-by: Michel Dänzer <[email protected]> Reviewed-by: Daniel Stone <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5469>
* ci: only build docs in the upstream-repoErik Faye-Lund2020-07-011-1/+1
| | | | | | Reviewed-by: Michel Dänzer <[email protected]> Reviewed-by: Daniel Stone <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5469>
* freedreno/ir3: add support for INTERP_MODE_NOPERSPECTIVEJonathan Marek2020-07-011-21/+50
| | | | | | | | Check the interp mode and use SYSTEM_VALUE_BARYCENTRIC_LINEAR_* instead when it is INTERP_MODE_NOPERSPECTIVE. Signed-off-by: Jonathan Marek <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5582>
* turnip: set missing bary sysvalsJonathan Marek2020-07-011-30/+43
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5582>
* freedreno/a6xx: set missing bary sysvalsJonathan Marek2020-07-011-30/+40
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5582>
* freedreno/a5xx: set missing bary sysvalsJonathan Marek2020-07-011-10/+25
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5582>
* freedreno/ir3: add generic get_barycentric()Jonathan Marek2020-07-013-28/+43
| | | | | | | This will be useful to support the missing barycentric sysvals. Signed-off-by: Jonathan Marek <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5582>
* freedreno/a4xx: fake LINEAR_PIXEL varying support for u_blitterJonathan Marek2020-07-011-1/+11
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5582>
* freedreno/a3xx: support LINEAR_PIXEL/PERSP_CENTROID/LINEAR_CENTROID sysvalsJonathan Marek2020-07-013-4/+22
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5582>
* freedreno/registers: update varying-related registersJonathan Marek2020-07-019-47/+71
| | | | | | | | | | | Note: * a3xx change based on available register documentation * a4xx guesses (RB_RENDER_CONTROL2 bits especially) * a5xx change based on a6xx, these registers seem identical Signed-off-by: Jonathan Marek <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5582>
* gitlab-ci: Automatically run pipelines for Marge Bot pre-merge onlyMichel Dänzer2020-07-011-7/+14
| | | | | | | | | | | | | Marge only merges an MR if the pipeline passed. Running the pipeline again after merging is redundant. v2: * Add rule to ensure docker images are up to date in the main project registry (Eric Anholt) Reviewed-by: Eric Anholt <[email protected]> Acked-by: Daniel Stone <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5680>
* v3d/compiler: fix image size for 1D arraysIago Toral Quiroga2020-07-011-1/+4
| | | | | | | Reviewed by: Alejandro Piñeiro <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5692>
* st/mesa: do not clear NewDriverState for inactive statesPierre-Eric Pelloux-Prayer2020-07-011-1/+1
| | | | | | | Fixes: 085aa7f91e8 ("st/mesa: don't update atomic, SSBO, UBO and TBO states that have no effect") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2951 Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5660>
* gallium/docs: remove unused imgmath extensionErik Faye-Lund2020-07-011-1/+1
| | | | | | Acked-by: Alyssa Rosenzweig <[email protected]> Acked-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5691>
* gallium/docs: remove non-existent static dirErik Faye-Lund2020-07-011-1/+1
| | | | | | Acked-by: Alyssa Rosenzweig <[email protected]> Acked-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5691>
* gallium/docs: prefix exts dir with underscoreErik Faye-Lund2020-07-012-1/+1
| | | | | | | | | | It's generally considered good practice to use underscore-prefixes for directories that contains non-doumentation files, so let's do this for our custom extensions as well. Acked-by: Alyssa Rosenzweig <[email protected]> Acked-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5691>
* gallium/docs: use none for highlight_languageErik Faye-Lund2020-07-012-2/+2
| | | | | | | | | | We have much more blocks that are of no particular language (mostly custom ASM variants), so let's instead opt in if we want syntax-highlighting. Acked-by: Alyssa Rosenzweig <[email protected]> Acked-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5691>
* gallium/docs: remove reference to non-existent labelErik Faye-Lund2020-07-011-1/+1
| | | | | | | | | | | This label was removed a long time ago, let's also remove the reference to it. Fixes: 3acd7a34ab0 ("st/vega: Remove.") Acked-by: Alyssa Rosenzweig <[email protected]> Acked-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5691>
* gallium/docs: fixup formatting of numbered listsErik Faye-Lund2020-07-011-3/+6
| | | | | | | | | Fixes: 0caf74bbcdf ("gallium: add PIPE_CAP_FRAMEBUFFER_MSAA_CONSTRAINTS") Fixes: 8632626c81a ("gallium: add pipe_resource::nr_storage_samples, and set it same as nr_samples") Acked-by: Alyssa Rosenzweig <[email protected]> Acked-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5691>