Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
angle
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
angle
Commits
9e73b210
Commit
9e73b210
authored
Jul 08, 2013
by
Shannon Woods
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Marks formats renderable which had been missed and corrects table headers.
TRAC #23273 Authored-by: Shannon Woods Signed-off-by: Geoff Lang Signed-off-by: Nicolas Capens
parent
809d250b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
formatutils.cpp
src/libGLESv2/formatutils.cpp
+10
-5
formatutils11.cpp
src/libGLESv2/renderer/formatutils11.cpp
+1
-0
No files found.
src/libGLESv2/formatutils.cpp
View file @
9e73b210
...
@@ -559,6 +559,10 @@ struct InternalFormatInfo
...
@@ -559,6 +559,10 @@ struct InternalFormatInfo
InternalFormatInfo
formatInfo
;
InternalFormatInfo
formatInfo
;
formatInfo
.
mFormat
=
format
;
formatInfo
.
mFormat
=
format
;
formatInfo
.
mSupportFunction
=
supportFunction
;
formatInfo
.
mSupportFunction
=
supportFunction
;
if
(
format
==
GL_RGB
||
format
==
GL_RGBA
)
formatInfo
.
mIsColorRenderable
=
AlwaysSupported
;
return
formatInfo
;
return
formatInfo
;
}
}
...
@@ -659,7 +663,7 @@ static InternalFormatInfoMap BuildES3InternalFormatInfoMap()
...
@@ -659,7 +663,7 @@ static InternalFormatInfoMap BuildES3InternalFormatInfoMap()
map
.
insert
(
InternalFormatInfoPair
(
GL_RG8_SNORM
,
InternalFormatInfo
::
RGBAFormat
(
8
,
8
,
0
,
0
,
0
,
GL_RG
,
GL_BYTE
,
NormalizedFixedPoint
,
false
,
NeverSupported
,
AlwaysSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_RG8_SNORM
,
InternalFormatInfo
::
RGBAFormat
(
8
,
8
,
0
,
0
,
0
,
GL_RG
,
GL_BYTE
,
NormalizedFixedPoint
,
false
,
NeverSupported
,
AlwaysSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_RGB8
,
InternalFormatInfo
::
RGBAFormat
(
8
,
8
,
8
,
0
,
0
,
GL_RGB
,
GL_UNSIGNED_BYTE
,
NormalizedFixedPoint
,
false
,
AlwaysSupported
,
AlwaysSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_RGB8
,
InternalFormatInfo
::
RGBAFormat
(
8
,
8
,
8
,
0
,
0
,
GL_RGB
,
GL_UNSIGNED_BYTE
,
NormalizedFixedPoint
,
false
,
AlwaysSupported
,
AlwaysSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_RGB8_SNORM
,
InternalFormatInfo
::
RGBAFormat
(
8
,
8
,
8
,
0
,
0
,
GL_RGB
,
GL_BYTE
,
NormalizedFixedPoint
,
false
,
NeverSupported
,
AlwaysSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_RGB8_SNORM
,
InternalFormatInfo
::
RGBAFormat
(
8
,
8
,
8
,
0
,
0
,
GL_RGB
,
GL_BYTE
,
NormalizedFixedPoint
,
false
,
NeverSupported
,
AlwaysSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_RGB565
,
InternalFormatInfo
::
RGBAFormat
(
5
,
6
,
5
,
0
,
0
,
GL_RGB
,
GL_UNSIGNED_SHORT_5_5_5_1
,
NormalizedFixedPoint
,
false
,
Never
Supported
,
AlwaysSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_RGB565
,
InternalFormatInfo
::
RGBAFormat
(
5
,
6
,
5
,
0
,
0
,
GL_RGB
,
GL_UNSIGNED_SHORT_5_5_5_1
,
NormalizedFixedPoint
,
false
,
Always
Supported
,
AlwaysSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_RGBA4
,
InternalFormatInfo
::
RGBAFormat
(
4
,
4
,
4
,
4
,
0
,
GL_RGBA
,
GL_UNSIGNED_SHORT_4_4_4_4
,
NormalizedFixedPoint
,
false
,
AlwaysSupported
,
AlwaysSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_RGBA4
,
InternalFormatInfo
::
RGBAFormat
(
4
,
4
,
4
,
4
,
0
,
GL_RGBA
,
GL_UNSIGNED_SHORT_4_4_4_4
,
NormalizedFixedPoint
,
false
,
AlwaysSupported
,
AlwaysSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_RGB5_A1
,
InternalFormatInfo
::
RGBAFormat
(
5
,
5
,
5
,
1
,
0
,
GL_RGBA
,
GL_UNSIGNED_SHORT_5_5_5_1
,
NormalizedFixedPoint
,
false
,
AlwaysSupported
,
AlwaysSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_RGB5_A1
,
InternalFormatInfo
::
RGBAFormat
(
5
,
5
,
5
,
1
,
0
,
GL_RGBA
,
GL_UNSIGNED_SHORT_5_5_5_1
,
NormalizedFixedPoint
,
false
,
AlwaysSupported
,
AlwaysSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_RGBA8
,
InternalFormatInfo
::
RGBAFormat
(
8
,
8
,
8
,
8
,
0
,
GL_RGBA
,
GL_UNSIGNED_BYTE
,
NormalizedFixedPoint
,
false
,
AlwaysSupported
,
AlwaysSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_RGBA8
,
InternalFormatInfo
::
RGBAFormat
(
8
,
8
,
8
,
8
,
0
,
GL_RGBA
,
GL_UNSIGNED_BYTE
,
NormalizedFixedPoint
,
false
,
AlwaysSupported
,
AlwaysSupported
,
AlwaysSupported
)));
...
@@ -712,14 +716,15 @@ static InternalFormatInfoMap BuildES3InternalFormatInfoMap()
...
@@ -712,14 +716,15 @@ static InternalFormatInfoMap BuildES3InternalFormatInfoMap()
map
.
insert
(
InternalFormatInfoPair
(
GL_RGBA32F
,
InternalFormatInfo
::
RGBAFormat
(
32
,
32
,
32
,
32
,
0
,
GL_RGBA
,
GL_FLOAT
,
FloatingPoint
,
false
,
CheckSupport
<&
Context
::
supportsFloat32RenderableTextures
,
&
rx
::
Renderer
::
getFloat32TextureRenderingSupport
>
,
CheckSupport
<&
Context
::
supportsFloat32LinearFilter
,
&
rx
::
Renderer
::
getFloat32TextureFilteringSupport
>
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_RGBA32F
,
InternalFormatInfo
::
RGBAFormat
(
32
,
32
,
32
,
32
,
0
,
GL_RGBA
,
GL_FLOAT
,
FloatingPoint
,
false
,
CheckSupport
<&
Context
::
supportsFloat32RenderableTextures
,
&
rx
::
Renderer
::
getFloat32TextureRenderingSupport
>
,
CheckSupport
<&
Context
::
supportsFloat32LinearFilter
,
&
rx
::
Renderer
::
getFloat32TextureFilteringSupport
>
,
AlwaysSupported
)));
// Depth stencil formats
// Depth stencil formats
// | Internal format | | D |S | Format | Type | Internal format |
Color | Texture
| Supported |
// | Internal format | | D |S | Format | Type | Internal format |
Depth | Stencil
| Supported |
// | | | | | | | type | renderable |
filt
erable | |
// | | | | | | | type | renderable |
rend
erable | |
map
.
insert
(
InternalFormatInfoPair
(
GL_DEPTH_COMPONENT16
,
InternalFormatInfo
::
DepthStencilFormat
(
16
,
0
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_SHORT
,
NormalizedFixedPoint
,
AlwaysSupported
,
NeverSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_DEPTH_COMPONENT16
,
InternalFormatInfo
::
DepthStencilFormat
(
16
,
0
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_SHORT
,
NormalizedFixedPoint
,
AlwaysSupported
,
NeverSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_DEPTH_COMPONENT24
,
InternalFormatInfo
::
DepthStencilFormat
(
24
,
0
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_INT
,
NormalizedFixedPoint
,
AlwaysSupported
,
NeverSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_DEPTH_COMPONENT24
,
InternalFormatInfo
::
DepthStencilFormat
(
24
,
0
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_INT
,
NormalizedFixedPoint
,
AlwaysSupported
,
NeverSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_DEPTH_COMPONENT32F
,
InternalFormatInfo
::
DepthStencilFormat
(
32
,
0
,
GL_DEPTH_COMPONENT
,
GL_FLOAT
,
FloatingPoint
,
AlwaysSupported
,
NeverSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_DEPTH_COMPONENT32F
,
InternalFormatInfo
::
DepthStencilFormat
(
32
,
0
,
GL_DEPTH_COMPONENT
,
GL_FLOAT
,
FloatingPoint
,
AlwaysSupported
,
NeverSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_DEPTH_COMPONENT32_OES
,
InternalFormatInfo
::
DepthStencilFormat
(
32
,
0
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_INT
,
NormalizedFixedPoint
,
AlwaysSupported
,
NeverSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_DEPTH_COMPONENT32_OES
,
InternalFormatInfo
::
DepthStencilFormat
(
32
,
0
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_INT
,
NormalizedFixedPoint
,
AlwaysSupported
,
NeverSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_DEPTH24_STENCIL8
,
InternalFormatInfo
::
DepthStencilFormat
(
24
,
8
,
GL_DEPTH_STENCIL
,
GL_UNSIGNED_INT_24_8
,
NormalizedFixedPoint
,
AlwaysSupported
,
AlwaysSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_DEPTH24_STENCIL8
,
InternalFormatInfo
::
DepthStencilFormat
(
24
,
8
,
GL_DEPTH_STENCIL
,
GL_UNSIGNED_INT_24_8
,
NormalizedFixedPoint
,
AlwaysSupported
,
AlwaysSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_DEPTH32F_STENCIL8
,
InternalFormatInfo
::
DepthStencilFormat
(
32
,
8
,
GL_DEPTH_STENCIL
,
GL_FLOAT_32_UNSIGNED_INT_24_8_REV
,
FloatingPoint
,
AlwaysSupported
,
AlwaysSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_DEPTH32F_STENCIL8
,
InternalFormatInfo
::
DepthStencilFormat
(
32
,
8
,
GL_DEPTH_STENCIL
,
GL_FLOAT_32_UNSIGNED_INT_24_8_REV
,
FloatingPoint
,
AlwaysSupported
,
AlwaysSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_STENCIL_INDEX8
,
InternalFormatInfo
::
DepthStencilFormat
(
0
,
8
,
GL_DEPTH_STENCIL
,
GL_UNSIGNED_BYTE
,
NormalizedFixedPoint
,
NeverSupported
,
AlwaysSupported
,
AlwaysSupported
)));
// Luminance alpha formats
// Luminance alpha formats
// | Internal format | | L | A | Format | Type | Internal format | Supported |
// | Internal format | | L | A | Format | Type | Internal format | Supported |
...
@@ -802,8 +807,8 @@ static InternalFormatInfoMap BuildES2InternalFormatInfoMap()
...
@@ -802,8 +807,8 @@ static InternalFormatInfoMap BuildES2InternalFormatInfoMap()
map
.
insert
(
InternalFormatInfoPair
(
GL_RGBA32F_EXT
,
InternalFormatInfo
::
RGBAFormat
(
32
,
32
,
32
,
32
,
0
,
GL_RGBA
,
GL_FLOAT
,
FloatingPoint
,
false
,
CheckSupport
<&
Context
::
supportsFloat32RenderableTextures
,
&
rx
::
Renderer
::
getFloat32TextureRenderingSupport
>
,
CheckSupport
<&
Context
::
supportsFloat32LinearFilter
,
&
rx
::
Renderer
::
getFloat32TextureFilteringSupport
>
,
CheckSupport
<&
Context
::
supportsFloat32Textures
>
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_RGBA32F_EXT
,
InternalFormatInfo
::
RGBAFormat
(
32
,
32
,
32
,
32
,
0
,
GL_RGBA
,
GL_FLOAT
,
FloatingPoint
,
false
,
CheckSupport
<&
Context
::
supportsFloat32RenderableTextures
,
&
rx
::
Renderer
::
getFloat32TextureRenderingSupport
>
,
CheckSupport
<&
Context
::
supportsFloat32LinearFilter
,
&
rx
::
Renderer
::
getFloat32TextureFilteringSupport
>
,
CheckSupport
<&
Context
::
supportsFloat32Textures
>
)));
// Depth and stencil formats
// Depth and stencil formats
// | Internal format | | D |S | Format | Type | Internal format |
Color | Texture
| Supported |
// | Internal format | | D |S | Format | Type | Internal format |
Depth | Stencil
| Supported |
// | | | | | | | type | renderable |
filt
erable | |
// | | | | | | | type | renderable |
rend
erable | |
map
.
insert
(
InternalFormatInfoPair
(
GL_DEPTH_COMPONENT32_OES
,
InternalFormatInfo
::
DepthStencilFormat
(
32
,
0
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_INT
,
NormalizedFixedPoint
,
AlwaysSupported
,
NeverSupported
,
CheckSupport
<&
Context
::
supportsDepthTextures
>
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_DEPTH_COMPONENT32_OES
,
InternalFormatInfo
::
DepthStencilFormat
(
32
,
0
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_INT
,
NormalizedFixedPoint
,
AlwaysSupported
,
NeverSupported
,
CheckSupport
<&
Context
::
supportsDepthTextures
>
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_DEPTH24_STENCIL8_OES
,
InternalFormatInfo
::
DepthStencilFormat
(
24
,
8
,
GL_DEPTH_STENCIL_OES
,
GL_UNSIGNED_INT_24_8_OES
,
NormalizedFixedPoint
,
AlwaysSupported
,
AlwaysSupported
,
CheckSupport
<&
Context
::
supportsDepthTextures
>
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_DEPTH24_STENCIL8_OES
,
InternalFormatInfo
::
DepthStencilFormat
(
24
,
8
,
GL_DEPTH_STENCIL_OES
,
GL_UNSIGNED_INT_24_8_OES
,
NormalizedFixedPoint
,
AlwaysSupported
,
AlwaysSupported
,
CheckSupport
<&
Context
::
supportsDepthTextures
>
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_DEPTH_COMPONENT16
,
InternalFormatInfo
::
DepthStencilFormat
(
16
,
0
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_SHORT
,
NormalizedFixedPoint
,
AlwaysSupported
,
NeverSupported
,
AlwaysSupported
)));
map
.
insert
(
InternalFormatInfoPair
(
GL_DEPTH_COMPONENT16
,
InternalFormatInfo
::
DepthStencilFormat
(
16
,
0
,
GL_DEPTH_COMPONENT
,
GL_UNSIGNED_SHORT
,
NormalizedFixedPoint
,
AlwaysSupported
,
NeverSupported
,
AlwaysSupported
)));
...
...
src/libGLESv2/renderer/formatutils11.cpp
View file @
9e73b210
...
@@ -123,6 +123,7 @@ static D3D11ES3FormatMap BuildD3D11ES3FormatMap()
...
@@ -123,6 +123,7 @@ static D3D11ES3FormatMap BuildD3D11ES3FormatMap()
map
.
insert
(
D3D11ES3FormatPair
(
GL_DEPTH_COMPONENT32F
,
D3D11ES3FormatInfo
(
DXGI_FORMAT_R32_TYPELESS
,
DXGI_FORMAT_R32_FLOAT
,
DXGI_FORMAT_UNKNOWN
,
DXGI_FORMAT_D32_FLOAT
)));
map
.
insert
(
D3D11ES3FormatPair
(
GL_DEPTH_COMPONENT32F
,
D3D11ES3FormatInfo
(
DXGI_FORMAT_R32_TYPELESS
,
DXGI_FORMAT_R32_FLOAT
,
DXGI_FORMAT_UNKNOWN
,
DXGI_FORMAT_D32_FLOAT
)));
map
.
insert
(
D3D11ES3FormatPair
(
GL_DEPTH24_STENCIL8
,
D3D11ES3FormatInfo
(
DXGI_FORMAT_R24G8_TYPELESS
,
DXGI_FORMAT_R24_UNORM_X8_TYPELESS
,
DXGI_FORMAT_UNKNOWN
,
DXGI_FORMAT_D24_UNORM_S8_UINT
)));
map
.
insert
(
D3D11ES3FormatPair
(
GL_DEPTH24_STENCIL8
,
D3D11ES3FormatInfo
(
DXGI_FORMAT_R24G8_TYPELESS
,
DXGI_FORMAT_R24_UNORM_X8_TYPELESS
,
DXGI_FORMAT_UNKNOWN
,
DXGI_FORMAT_D24_UNORM_S8_UINT
)));
map
.
insert
(
D3D11ES3FormatPair
(
GL_DEPTH32F_STENCIL8
,
D3D11ES3FormatInfo
(
DXGI_FORMAT_R32G8X24_TYPELESS
,
DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS
,
DXGI_FORMAT_UNKNOWN
,
DXGI_FORMAT_D32_FLOAT_S8X24_UINT
)));
map
.
insert
(
D3D11ES3FormatPair
(
GL_DEPTH32F_STENCIL8
,
D3D11ES3FormatInfo
(
DXGI_FORMAT_R32G8X24_TYPELESS
,
DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS
,
DXGI_FORMAT_UNKNOWN
,
DXGI_FORMAT_D32_FLOAT_S8X24_UINT
)));
map
.
insert
(
D3D11ES3FormatPair
(
GL_STENCIL_INDEX8
,
D3D11ES3FormatInfo
(
DXGI_FORMAT_R24G8_TYPELESS
,
DXGI_FORMAT_X24_TYPELESS_G8_UINT
,
DXGI_FORMAT_UNKNOWN
,
DXGI_FORMAT_D24_UNORM_S8_UINT
)));
// From GL_ANGLE_depth_texture
// From GL_ANGLE_depth_texture
map
.
insert
(
D3D11ES3FormatPair
(
GL_DEPTH_COMPONENT32_OES
,
D3D11ES3FormatInfo
(
DXGI_FORMAT_R24G8_TYPELESS
,
DXGI_FORMAT_R24_UNORM_X8_TYPELESS
,
DXGI_FORMAT_UNKNOWN
,
DXGI_FORMAT_D24_UNORM_S8_UINT
)));
map
.
insert
(
D3D11ES3FormatPair
(
GL_DEPTH_COMPONENT32_OES
,
D3D11ES3FormatInfo
(
DXGI_FORMAT_R24G8_TYPELESS
,
DXGI_FORMAT_R24_UNORM_X8_TYPELESS
,
DXGI_FORMAT_UNKNOWN
,
DXGI_FORMAT_D24_UNORM_S8_UINT
)));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment