summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/freedreno/a2xx/fd2_program.h
AgeCommit message (Collapse)AuthorFilesLines
2021-04-14freedreno: Re-indentRob Clark1-24/+24
clang-format -fallback-style=none --style=file -i src/gallium/drivers/freedreno/*.[ch] src/gallium/drivers/freedreno/*/*.[ch] Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8883>
2021-02-18freedreno: driver-thread annotationsRob Clark1-1/+1
Use clangs thread-safety annotations to implement a virtual lock protecting context fields that should only be accessed from driver- thread. This should let the compiler help us detect problems where ctx is used unsafely from things that could be called by the fe/st thread. This does end up sprinkled far and wide, it would be nice if the compiler could be a bit smarter about understanding call-graphs (at least with static fxns), but at least it makes it clear where things are called from which thread. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9061>
2019-01-28freedreno: a2xx: enable early-Z testingJonathan Marek1-0/+1
Enable earlyZ when alpha test is disabled. Signed-off-by: Jonathan Marek <jonathan@marek.ca> Reviewed-by: Rob Clark <robdclark@gmail.com>
2019-01-22freedreno: a2xx: NIR backendJonathan Marek1-28/+18
This patch replaces the a2xx TGSI compiler with a NIR compiler. It also adds several new features: -gl_FrontFacing, gl_FragCoord, gl_PointCoord, gl_PointSize -control flow (including loops) -texture related features (LOD/bias, cubemaps) -filling scalar ALU slot when possible Signed-off-by: Jonathan Marek <jonathan@marek.ca>
2018-11-27freedreno: shader_t -> gl_shader_stageRob Clark1-1/+1
Just massive search/replace for the most part. Step towards removing ir3 dependency on disasm.h which is shared by a2xx. One step closer to being able to move ir3 out of gallium. Signed-off-by: Rob Clark <robdclark@gmail.com>
2018-10-17freedreno: Remove the Emacs mode linesNeil Roberts1-2/+0
These are not necessary because the corresponding settings are set via the .dir-locals.el file anyway. Most of them were missing a ‘:’ after “tab-width” which was making Emacs display an annoying warning whenever you open the file. This patch was made with: sed -ri '/-\*- mode:/,/^$/d' \ $(find src/gallium/{drivers,winsys} -name \*.\[ch\] \ -exec grep -l -- '-\*- mode:' {} \+) Signed-off-by: Rob Clark <robdclark@gmail.com>
2014-02-23freedreno/a3xx: drop hand-coded blit/solid shadersRob Clark1-1/+0
Instead in the common code, construct these shaders from TGSI. For now we let a2xx keep it's hand coded shaders, as it's compiler isn't quite up to the job yet. All the same it is a net drop in code size and gets rid of special cases. Signed-off-by: Rob Clark <robclark@freedesktop.org>
2013-06-08freedreno: prepare for a3xxRob Clark1-0/+82
Split the parts that are specific to adreno a2xx series GPUs from the parts that will be in common with a3xx, so that a3xx support can be added more cleanly. Signed-off-by: Rob Clark <robclark@freedesktop.org>