Skip to content

Commit

Permalink
qt: add another patch "consistent_shader_order_for_qsb2" from upstrea…
Browse files Browse the repository at this point in the history
…m qt6.5

for reproducible builds
  • Loading branch information
SomberNight committed Dec 16, 2023
1 parent 80f6fcf commit 01c6068
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pythonforandroid/recipes/hostqt6/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ class HostQt6Recipe(Recipe):

patches = [
'qml_codegen_stable_localvars.patch',
'consistent_shader_order_for_qsb.patch', # see https://bugreports.qt.io/browse/QTBUG-101923
'consistent_shader_order_for_qsb1.patch', # see https://bugreports.qt.io/browse/QTBUG-101923
'consistent_shader_order_for_qsb2.patch', # follow-up to above, from https://codereview.qt-project.org/c/qt/qtbase/+/427477
]

build_subdir = 'native-build'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
--- a/qtbase/src/gui/rhi/qshader_p.h 2023-12-16 07:50:16.320737300 +0000
+++ b/qtbase/src/gui/rhi/qshader_p.h 2023-12-16 07:52:12.791845200 +0000
@@ -17,6 +17,7 @@

#include <QtGui/qtguiglobal.h>
#include <QtCore/qhash.h>
+#include <QtCore/qmap.h>
#include <private/qshaderdescription_p.h>

QT_BEGIN_NAMESPACE
@@ -127,7 +128,7 @@
QByteArray serialized() const;
static QShader fromSerialized(const QByteArray &data);

- using NativeResourceBindingMap = QHash<int, QPair<int, int> >; // binding -> native_binding[, native_binding]
+ using NativeResourceBindingMap = QMap<int, QPair<int, int> >; // binding -> native_binding[, native_binding]
NativeResourceBindingMap nativeResourceBindingMap(const QShaderKey &key) const;
void setResourceBindingMap(const QShaderKey &key, const NativeResourceBindingMap &map);
void removeResourceBindingMap(const QShaderKey &key);

0 comments on commit 01c6068

Please sign in to comment.