New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mesa: free up floating point textures (patents expired), 8.1.2 -> 8.1.4 #43378
Conversation
# NOTE: In Mesa >=18.1.2 - enabled by default: patents on floating point textures expired. | ||
(lib.enableFeature enableTextureFloats "texture-float") | ||
]; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this block of changes actually disable the feature?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, it should be no change from default on this mesa version, so I certainly don't feel strongly about it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I would enable floating textures for that poor mesa-darwin
8.0.3
.
Calling @vcunat as a package maintainer.
{
mesa_drivers =
let mo = mesa_noglu.override {
grsecEnabled = config.grsecurity or false;
# enableTextureFloats = true; <- this
};
in mo.drivers;
} Am I right that noGL(Utils) here has the meaning non-GNU?
|
I noticed already :-) I think this is good (though I made a comment for darwin). Even (3.) would seem OK to me, but the override should be a no-op now anyway, so I don't think there's much difference. |
I just inserted them (
I would post error log in below messages. |
Meson build:
|
|
Did "1." - removed Did "2., 3." Did mentioned by vcunat - freed up floating point textures in |
51ff0f9
to
ebcc635
Compare
Ok. @vcunat . And also I did:
I tried to force forward We have I refactored all to 5 commits. |
ebcc635
to
d7a3d3e
Compare
|
Config log: ``` configure: WARNING: unrecognized options: --disable-glx-rts, --enable-sysfs ```
d7a3d3e
to
7ebc3ab
Compare
@vcunat What we do about this PR. Because enabling floating point textures is a corner-stone feature for OpenGL 3.0, and upper levels, compliance. And it also enables a big boost in operations that expect that feature enabled. |
I'm certainly not against in principle. I plan to have a closer look at this soon. |
@vcunat I updated the main post. It precisely reflects what is in changes, so you don't need to re-read the thread. Also with my finishing work on Nix POSIX installer epic NixOS/nix#1565, in nearest time I woul reach-out to you through |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does seem good. ❤️
Motivation for this change
1.a. https://cgit.freedesktop.org/mesa/mesa/commit/?id=66673bef941af344314fe9c91cad8cd330b245eb
1.b. https://www.phoronix.com/scan.php?page=news_item&px=OpenGL-Texture-Float-Freed
2. https://www.mesa3d.org/relnotes/18.1.3.html
Things done (recently updated, 2018-07-25)
mesa
now has floating point textures enabled by default - removed inmesa
the trigger (enableTextureFloats
) - that was prioply in disabled state by default, and was blocking patented features.enableTextureFloats
trigger key tomesa-darwin
and enabled it. As it is8.0.3
- 2012 version fossil. So I kept its current old state, and also enabled the floating point textures there.mesa_drivers
fromenableTextureFloats = true;
, because it now enabled by default.mesa
8.1.2
->8.1.3
.eduarrrd
from allnixpkgs
descriptions, since more than a year of inactivity.grecurity
parts and patches from Mesa, since both got agreement fromvcunat
andgrsecurity
would not work in NixOS at nearest times.sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)