Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Mesa
piglit
Commits
f7b7592d
Commit
f7b7592d
authored
Feb 17, 2011
by
Marek Olšák
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fbo-generatemipmap-formats: test EXT_texture_snorm
parent
63a70393
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
0 deletions
+37
-0
tests/all.tests
tests/all.tests
+4
-0
tests/fbo/fbo-formats.h
tests/fbo/fbo-formats.h
+33
-0
No files found.
tests/all.tests
View file @
f7b7592d
...
...
@@ -1147,6 +1147,10 @@ add_fbo_generatemipmap_extension(ext_texture_shared_exponent, 'GL_EXT_texture_sh
add_fbo_clear_extension
(
ext_texture_shared_exponent
,
'GL_EXT_texture_shared_exponent'
,
'fbo-clear-formats'
)
add_texwrap_test2
(
ext_texture_shared_exponent
,
'2D'
,
'GL_RGB9_E5'
)
ext_texture_snorm
=
Group
()
spec
[
'EXT_texture_snorm'
]
=
ext_texture_snorm
add_fbo_generatemipmap_extension
(
ext_texture_snorm
,
'GL_EXT_texture_snorm'
,
'fbo-generatemipmap-formats'
)
ext_texture_srgb
=
Group
()
spec
[
'EXT_texture_sRGB'
]
=
ext_texture_srgb
add_fbo_generatemipmap_extension
(
ext_texture_srgb
,
'GL_EXT_texture_sRGB'
,
'fbo-generatemipmap-formats'
)
...
...
tests/fbo/fbo-formats.h
View file @
f7b7592d
...
...
@@ -252,6 +252,33 @@ static const struct format_desc ext_texture_compression_latc[] = {
FORMAT
(
GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT
)
};
static
const
struct
format_desc
ext_texture_snorm
[]
=
{
FORMAT
(
GL_RED_SNORM
),
FORMAT
(
GL_RG_SNORM
),
FORMAT
(
GL_RGB_SNORM
),
FORMAT
(
GL_RGBA_SNORM
),
FORMAT
(
GL_R8_SNORM
),
FORMAT
(
GL_RG8_SNORM
),
FORMAT
(
GL_RGB8_SNORM
),
FORMAT
(
GL_RGBA8_SNORM
),
FORMAT
(
GL_R16_SNORM
),
FORMAT
(
GL_RG16_SNORM
),
FORMAT
(
GL_RGB16_SNORM
),
FORMAT
(
GL_RGBA16_SNORM
),
FORMAT
(
GL_ALPHA_SNORM
),
FORMAT
(
GL_LUMINANCE_SNORM
),
FORMAT
(
GL_LUMINANCE_ALPHA_SNORM
),
FORMAT
(
GL_INTENSITY_SNORM
),
FORMAT
(
GL_ALPHA8_SNORM
),
FORMAT
(
GL_LUMINANCE8_SNORM
),
FORMAT
(
GL_LUMINANCE8_ALPHA8_SNORM
),
FORMAT
(
GL_INTENSITY8_SNORM
),
FORMAT
(
GL_ALPHA16_SNORM
),
FORMAT
(
GL_LUMINANCE16_SNORM
),
FORMAT
(
GL_LUMINANCE16_ALPHA16_SNORM
),
FORMAT
(
GL_INTENSITY16_SNORM
)
};
struct
test_desc
{
const
struct
format_desc
*
format
;
unsigned
num_formats
;
...
...
@@ -383,4 +410,10 @@ static const struct test_desc test_sets[] = {
"GL_EXT_texture_compression_latc"
,
{
"GL_EXT_texture_compression_latc"
}
},
{
ext_texture_snorm
,
ARRAY_SIZE
(
ext_texture_snorm
),
"GL_EXT_texture_snorm"
,
{
"GL_EXT_texture_snorm"
}
},
};
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