rhi: Remove unused init flag

Change-Id: I289452f39fd161da0e0d7bf329e0922df6bbde8a
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
This commit is contained in:
Laszlo Agocs 2023-04-04 15:19:32 +02:00
parent 9807af617d
commit 9e0ebc36d6
5 changed files with 6 additions and 9 deletions

View File

@ -415,8 +415,6 @@ Q_LOGGING_CATEGORY(QRHI_LOG_INFO, "qt.rhi.general")
\enum QRhi::Flag \enum QRhi::Flag
Describes what special features to enable. Describes what special features to enable.
\value EnableProfiling This flag has currently no effect.
\value EnableDebugMarkers Enables debug marker groups. Without this frame \value EnableDebugMarkers Enables debug marker groups. Without this frame
debugging features like making debug groups and custom resource name debugging features like making debug groups and custom resource name
visible in external GPU debugging tools will not be available and functions visible in external GPU debugging tools will not be available and functions

View File

@ -1766,10 +1766,9 @@ public:
}; };
enum Flag { enum Flag {
EnableProfiling = 1 << 0, EnableDebugMarkers = 1 << 0,
EnableDebugMarkers = 1 << 1, PreferSoftwareRenderer = 1 << 1,
PreferSoftwareRenderer = 1 << 2, EnablePipelineCacheDataSave = 1 << 2
EnablePipelineCacheDataSave = 1 << 3
}; };
Q_DECLARE_FLAGS(Flags, Flag) Q_DECLARE_FLAGS(Flags, Flag)

View File

@ -82,7 +82,7 @@ bool Window::event(QEvent *e)
void Window::init() void Window::init()
{ {
QRhi::Flags rhiFlags = QRhi::EnableDebugMarkers | QRhi::EnableProfiling; QRhi::Flags rhiFlags = QRhi::EnableDebugMarkers;
if (m_graphicsApi == QRhi::Null) { if (m_graphicsApi == QRhi::Null) {
QRhiNullInitParams params; QRhiNullInitParams params;

View File

@ -55,7 +55,7 @@ bool Window::event(QEvent *e)
void Window::init() void Window::init()
{ {
QRhi::Flags rhiFlags = QRhi::EnableDebugMarkers | QRhi::EnableProfiling; QRhi::Flags rhiFlags = QRhi::EnableDebugMarkers;
m_fallbackSurface.reset(QRhiGles2InitParams::newFallbackSurface()); m_fallbackSurface.reset(QRhiGles2InitParams::newFallbackSurface());
QRhiGles2InitParams params; QRhiGles2InitParams params;

View File

@ -66,7 +66,7 @@ void Window::keyPressEvent(QKeyEvent *)
void Window::init() void Window::init()
{ {
QRhi::Flags rhiFlags = QRhi::EnableDebugMarkers | QRhi::EnableProfiling; QRhi::Flags rhiFlags = QRhi::EnableDebugMarkers;
m_fallbackSurface.reset(QRhiGles2InitParams::newFallbackSurface()); m_fallbackSurface.reset(QRhiGles2InitParams::newFallbackSurface());
QRhiGles2InitParams params; QRhiGles2InitParams params;