Bug 102467

Summary: src/mesa/state_tracker/st_cb_readpixels.c:178]: (warning) Redundant assignment
Product: Mesa Reporter: dcb314
Component: Mesa coreAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact: mesa-dev
Severity: normal    
Priority: medium    
Version: 17.2   
Hardware: Other   
OS: All   
i915 platform: i915 features:

Description dcb314 2017-08-29 10:44:10 UTC
mesa-17.1.8/src/mesa/state_tracker/st_cb_readpixels.c:178]: (warning) Redundant assignment of 'templ.u.tex.last_layer' to itself.

Source code is

      if (view_target != PIPE_TEXTURE_3D) {
         templ.u.tex.first_layer = surface->u.tex.first_layer;
         templ.u.tex.last_layer = templ.u.tex.last_layer;
      } else {
         addr.constants.layer_offset = surface->u.tex.first_layer;
Comment 1 Roland Scheidegger 2017-09-05 12:44:09 UTC
Fixed by 2b2c61f0df5c18355b65772d21be36339ba5e1d9.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.