Skip to content

Commit 2ded7e8

Browse files
committed
GLESPhysDev Fix some Format Report
1 parent fb7e7d6 commit 2ded7e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/nbl/video/COpenGLESPhysicalDevice.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class COpenGLESPhysicalDevice final : public IOpenGL_PhysicalDeviceBase<COpenGLE
5151
m_optimalTilingUsages[format].storageImage = isAllowedImageStoreFormat(format) ? 1 : 0;
5252
m_optimalTilingUsages[format].storageImageAtomic = isAllowedImageStoreAtomicFormat(format) ? 1 : 0;
5353
m_optimalTilingUsages[format].attachment = isRenderableFormat(format) ? 1 : 0;
54-
m_optimalTilingUsages[format].attachmentBlend = isRenderableFormat(format) ? 1 : 0;
54+
m_optimalTilingUsages[format].attachmentBlend = (isRenderableFormat(format) && !isIntegerFormat(format)) ? 1 : 0;
5555
m_optimalTilingUsages[format].blitSrc = isRenderableFormat(format) ? 1 : 0;
5656
m_optimalTilingUsages[format].blitDst = isRenderableFormat(format) ? 1 : 0;
5757
const bool anyUsageFlagSet =
@@ -91,8 +91,8 @@ class COpenGLESPhysicalDevice final : public IOpenGL_PhysicalDeviceBase<COpenGLE
9191

9292
m_bufferUsages[format].vertexAttribute = isAllowedVertexAttribFormat(format) ? 1 : 0;
9393
m_bufferUsages[format].bufferView = isAllowedBufferViewFormat(format) ? 1 : 0;
94-
m_bufferUsages[format].storageBufferView = isAllowedBufferViewFormat(format) ? 1 : 0;
95-
m_bufferUsages[format].storageBufferViewAtomic = isAllowedBufferViewFormat(format) ? 1 : 0;
94+
m_bufferUsages[format].storageBufferView = (isAllowedBufferViewFormat(format) && isAllowedImageStoreFormat(format)) ? 1 : 0;
95+
m_bufferUsages[format].storageBufferViewAtomic = (isAllowedBufferViewFormat(format) && isAllowedImageStoreAtomicFormat(format)) ? 1 : 0;
9696
m_bufferUsages[format].accelerationStructureVertex = false;
9797

9898
m_bufferUsages[format].isInitialized = 1;

0 commit comments

Comments
 (0)