Skip to content

Commit 39cc65c

Browse files
committed
qt: add another patch "consistent_shader_order_for_qsb2" from upstream qt6.5
for reproducible builds
1 parent e04b875 commit 39cc65c

3 files changed

Lines changed: 21 additions & 1 deletion

File tree

pythonforandroid/recipes/hostqt6/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ class HostQt6Recipe(Recipe):
2121

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

2728
build_subdir = 'native-build'

pythonforandroid/recipes/hostqt6/consistent_shader_order_for_qsb.patch renamed to pythonforandroid/recipes/hostqt6/consistent_shader_order_for_qsb1.patch

File renamed without changes.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
--- a/qtbase/src/gui/rhi/qshader_p.h 2023-12-16 07:50:16.320737300 +0000
2+
+++ b/qtbase/src/gui/rhi/qshader_p.h 2023-12-16 07:52:12.791845200 +0000
3+
@@ -17,6 +17,7 @@
4+
5+
#include <QtGui/qtguiglobal.h>
6+
#include <QtCore/qhash.h>
7+
+#include <QtCore/qmap.h>
8+
#include <private/qshaderdescription_p.h>
9+
10+
QT_BEGIN_NAMESPACE
11+
@@ -127,7 +128,7 @@
12+
QByteArray serialized() const;
13+
static QShader fromSerialized(const QByteArray &data);
14+
15+
- using NativeResourceBindingMap = QHash<int, QPair<int, int> >; // binding -> native_binding[, native_binding]
16+
+ using NativeResourceBindingMap = QMap<int, QPair<int, int> >; // binding -> native_binding[, native_binding]
17+
NativeResourceBindingMap nativeResourceBindingMap(const QShaderKey &key) const;
18+
void setResourceBindingMap(const QShaderKey &key, const NativeResourceBindingMap &map);
19+
void removeResourceBindingMap(const QShaderKey &key);

0 commit comments

Comments
 (0)