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
d3ff2169
Commit
d3ff2169
authored
Jun 07, 2013
by
Geoff Lang
Committed by
Shannon Woods
Jul 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Marked unsized format load functions as unreachable and added a comment why.
TRAC #23228 Signed-off-by: Jamie Madill Signed-off-by: Shannon Woods Author: Geoff Lang
parent
ae4852a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
8 deletions
+17
-8
formatutils11.cpp
src/libGLESv2/renderer/formatutils11.cpp
+17
-8
No files found.
src/libGLESv2/renderer/formatutils11.cpp
View file @
d3ff2169
...
@@ -185,6 +185,13 @@ static void UnimplementedLoadFunction(int width, int height, int depth,
...
@@ -185,6 +185,13 @@ static void UnimplementedLoadFunction(int width, int height, int depth,
UNIMPLEMENTED
();
UNIMPLEMENTED
();
}
}
static
void
UnreachableLoadFunction
(
int
width
,
int
height
,
int
depth
,
const
void
*
input
,
unsigned
int
inputRowPitch
,
unsigned
int
inputDepthPitch
,
void
*
output
,
unsigned
int
outputRowPitch
,
unsigned
int
outputDepthPitch
)
{
UNREACHABLE
();
}
// A helper function to insert data into the D3D11LoadFunctionMap with fewer characters.
// A helper function to insert data into the D3D11LoadFunctionMap with fewer characters.
static
inline
void
insertLoadFunction
(
D3D11LoadFunctionMap
*
map
,
GLint
internalFormat
,
GLenum
type
,
static
inline
void
insertLoadFunction
(
D3D11LoadFunctionMap
*
map
,
GLint
internalFormat
,
GLenum
type
,
LoadImageFunction
loadFunc
)
LoadImageFunction
loadFunc
)
...
@@ -266,14 +273,16 @@ D3D11LoadFunctionMap buildD3D11LoadFunctionMap()
...
@@ -266,14 +273,16 @@ D3D11LoadFunctionMap buildD3D11LoadFunctionMap()
insertLoadFunction
(
&
map
,
GL_DEPTH32F_STENCIL8
,
GL_FLOAT_32_UNSIGNED_INT_24_8_REV
,
UnimplementedLoadFunction
);
insertLoadFunction
(
&
map
,
GL_DEPTH32F_STENCIL8
,
GL_FLOAT_32_UNSIGNED_INT_24_8_REV
,
UnimplementedLoadFunction
);
// Unsized formats
// Unsized formats
insertLoadFunction
(
&
map
,
GL_RGBA
,
GL_UNSIGNED_BYTE
,
UnimplementedLoadFunction
);
// Load functions are unreachable because they are converted to sized internal formats based on
insertLoadFunction
(
&
map
,
GL_RGBA
,
GL_UNSIGNED_SHORT_4_4_4_4
,
UnimplementedLoadFunction
);
// the format and type before loading takes place.
insertLoadFunction
(
&
map
,
GL_RGBA
,
GL_UNSIGNED_SHORT_5_5_5_1
,
UnimplementedLoadFunction
);
insertLoadFunction
(
&
map
,
GL_RGBA
,
GL_UNSIGNED_BYTE
,
UnreachableLoadFunction
);
insertLoadFunction
(
&
map
,
GL_RGB
,
GL_UNSIGNED_BYTE
,
UnimplementedLoadFunction
);
insertLoadFunction
(
&
map
,
GL_RGBA
,
GL_UNSIGNED_SHORT_4_4_4_4
,
UnreachableLoadFunction
);
insertLoadFunction
(
&
map
,
GL_RGB
,
GL_UNSIGNED_SHORT_5_6_5
,
UnimplementedLoadFunction
);
insertLoadFunction
(
&
map
,
GL_RGBA
,
GL_UNSIGNED_SHORT_5_5_5_1
,
UnreachableLoadFunction
);
insertLoadFunction
(
&
map
,
GL_LUMINANCE_ALPHA
,
GL_UNSIGNED_BYTE
,
UnimplementedLoadFunction
);
insertLoadFunction
(
&
map
,
GL_RGB
,
GL_UNSIGNED_BYTE
,
UnreachableLoadFunction
);
insertLoadFunction
(
&
map
,
GL_LUMINANCE
,
GL_UNSIGNED_BYTE
,
UnimplementedLoadFunction
);
insertLoadFunction
(
&
map
,
GL_RGB
,
GL_UNSIGNED_SHORT_5_6_5
,
UnreachableLoadFunction
);
insertLoadFunction
(
&
map
,
GL_ALPHA
,
GL_UNSIGNED_BYTE
,
UnimplementedLoadFunction
);
insertLoadFunction
(
&
map
,
GL_LUMINANCE_ALPHA
,
GL_UNSIGNED_BYTE
,
UnreachableLoadFunction
);
insertLoadFunction
(
&
map
,
GL_LUMINANCE
,
GL_UNSIGNED_BYTE
,
UnreachableLoadFunction
);
insertLoadFunction
(
&
map
,
GL_ALPHA
,
GL_UNSIGNED_BYTE
,
UnreachableLoadFunction
);
// From GL_OES_texture_float
// From GL_OES_texture_float
insertLoadFunction
(
&
map
,
GL_LUMINANCE_ALPHA
,
GL_FLOAT
,
loadLuminanceAlphaFloatDataToRGBA
);
insertLoadFunction
(
&
map
,
GL_LUMINANCE_ALPHA
,
GL_FLOAT
,
loadLuminanceAlphaFloatDataToRGBA
);
...
...
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