mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
freedreno/a3xx: fix comparison out of range warnings
Signed-off-by: Francesco Ansanelli <francians@gmail.com> Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
089cc74b6a
commit
43492c7f2c
1 changed files with 7 additions and 7 deletions
|
|
@ -52,12 +52,12 @@ fd3_screen_is_format_supported(struct pipe_screen *pscreen,
|
|||
}
|
||||
|
||||
if ((usage & PIPE_BIND_VERTEX_BUFFER) &&
|
||||
(fd3_pipe2vtx(format) != ~0u)) {
|
||||
(fd3_pipe2vtx(format) != (enum a3xx_vtx_fmt)~0)) {
|
||||
retval |= PIPE_BIND_VERTEX_BUFFER;
|
||||
}
|
||||
|
||||
if ((usage & PIPE_BIND_SAMPLER_VIEW) &&
|
||||
(fd3_pipe2tex(format) != ~0u)) {
|
||||
(fd3_pipe2tex(format) != (enum a3xx_tex_fmt)~0)) {
|
||||
retval |= PIPE_BIND_SAMPLER_VIEW;
|
||||
}
|
||||
|
||||
|
|
@ -66,8 +66,8 @@ fd3_screen_is_format_supported(struct pipe_screen *pscreen,
|
|||
PIPE_BIND_SCANOUT |
|
||||
PIPE_BIND_SHARED |
|
||||
PIPE_BIND_BLENDABLE)) &&
|
||||
(fd3_pipe2color(format) != ~0u) &&
|
||||
(fd3_pipe2tex(format) != ~0u)) {
|
||||
(fd3_pipe2color(format) != (enum a3xx_color_fmt)~0) &&
|
||||
(fd3_pipe2tex(format) != (enum a3xx_tex_fmt)~0)) {
|
||||
retval |= usage & (PIPE_BIND_RENDER_TARGET |
|
||||
PIPE_BIND_DISPLAY_TARGET |
|
||||
PIPE_BIND_SCANOUT |
|
||||
|
|
@ -77,13 +77,13 @@ fd3_screen_is_format_supported(struct pipe_screen *pscreen,
|
|||
}
|
||||
|
||||
if ((usage & PIPE_BIND_DEPTH_STENCIL) &&
|
||||
(fd_pipe2depth(format) != ~0u) &&
|
||||
(fd3_pipe2tex(format) != ~0u)) {
|
||||
(fd_pipe2depth(format) != (enum adreno_rb_depth_format)~0) &&
|
||||
(fd3_pipe2tex(format) != (enum a3xx_tex_fmt)~0)) {
|
||||
retval |= PIPE_BIND_DEPTH_STENCIL;
|
||||
}
|
||||
|
||||
if ((usage & PIPE_BIND_INDEX_BUFFER) &&
|
||||
(fd_pipe2index(format) != ~0u)) {
|
||||
(fd_pipe2index(format) != (enum pc_di_index_size)~0)) {
|
||||
retval |= PIPE_BIND_INDEX_BUFFER;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue