Bug 102467 - src/mesa/state_tracker/st_cb_readpixels.c:178]: (warning) Redundant assignment
Summary: src/mesa/state_tracker/st_cb_readpixels.c:178]: (warning) Redundant assignment
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: 17.2
Hardware: Other All
: medium normal
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-29 10:44 UTC by dcb314
Modified: 2017-09-05 12:44 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.