mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
r600g,radeonsi: properly expose texture buffer formats
This exposes GL_ARB_texture_buffer_object_rgb32.
This commit is contained in:
parent
dbeedbb7ab
commit
6a250877ea
3 changed files with 24 additions and 9 deletions
|
|
@ -711,9 +711,14 @@ boolean evergreen_is_format_supported(struct pipe_screen *screen,
|
|||
}
|
||||
}
|
||||
|
||||
if ((usage & PIPE_BIND_SAMPLER_VIEW) &&
|
||||
r600_is_sampler_format_supported(screen, format)) {
|
||||
retval |= PIPE_BIND_SAMPLER_VIEW;
|
||||
if (usage & PIPE_BIND_SAMPLER_VIEW) {
|
||||
if (target == PIPE_BUFFER) {
|
||||
if (r600_is_vertex_format_supported(format))
|
||||
retval |= PIPE_BIND_SAMPLER_VIEW;
|
||||
} else {
|
||||
if (r600_is_sampler_format_supported(screen, format))
|
||||
retval |= PIPE_BIND_SAMPLER_VIEW;
|
||||
}
|
||||
}
|
||||
|
||||
if ((usage & (PIPE_BIND_RENDER_TARGET |
|
||||
|
|
|
|||
|
|
@ -649,9 +649,14 @@ boolean r600_is_format_supported(struct pipe_screen *screen,
|
|||
}
|
||||
}
|
||||
|
||||
if ((usage & PIPE_BIND_SAMPLER_VIEW) &&
|
||||
r600_is_sampler_format_supported(screen, format)) {
|
||||
retval |= PIPE_BIND_SAMPLER_VIEW;
|
||||
if (usage & PIPE_BIND_SAMPLER_VIEW) {
|
||||
if (target == PIPE_BUFFER) {
|
||||
if (r600_is_vertex_format_supported(format))
|
||||
retval |= PIPE_BIND_SAMPLER_VIEW;
|
||||
} else {
|
||||
if (r600_is_sampler_format_supported(screen, format))
|
||||
retval |= PIPE_BIND_SAMPLER_VIEW;
|
||||
}
|
||||
}
|
||||
|
||||
if ((usage & (PIPE_BIND_RENDER_TARGET |
|
||||
|
|
|
|||
|
|
@ -1497,9 +1497,14 @@ boolean si_is_format_supported(struct pipe_screen *screen,
|
|||
}
|
||||
}
|
||||
|
||||
if ((usage & PIPE_BIND_SAMPLER_VIEW) &&
|
||||
si_is_sampler_format_supported(screen, format)) {
|
||||
retval |= PIPE_BIND_SAMPLER_VIEW;
|
||||
if (usage & PIPE_BIND_SAMPLER_VIEW) {
|
||||
if (target == PIPE_BUFFER) {
|
||||
if (si_is_vertex_format_supported(screen, format))
|
||||
retval |= PIPE_BIND_SAMPLER_VIEW;
|
||||
} else {
|
||||
if (si_is_sampler_format_supported(screen, format))
|
||||
retval |= PIPE_BIND_SAMPLER_VIEW;
|
||||
}
|
||||
}
|
||||
|
||||
if ((usage & (PIPE_BIND_RENDER_TARGET |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue