mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-20 17:30:24 +01:00
llvmpipe: fix undefined shift 1 << 31.
Pointed out by coverity. Reviewed-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
parent
4690f90728
commit
604d89c2d1
1 changed files with 1 additions and 1 deletions
|
|
@ -251,7 +251,7 @@ setup_point_coefficients( struct lp_setup_context *setup,
|
|||
* PIPE_MAX_SHADER_OUTPUTS bits.
|
||||
*/
|
||||
if (semantic_index < PIPE_MAX_SHADER_OUTPUTS &&
|
||||
(setup->sprite_coord_enable & (1 << semantic_index))) {
|
||||
(setup->sprite_coord_enable & (1u << semantic_index))) {
|
||||
for (i = 0; i < NUM_CHANNELS; i++) {
|
||||
if (usage_mask & (1 << i)) {
|
||||
texcoord_coef(setup, info, slot + 1, i,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue