diff options
author | Danylo Piliaiev <[email protected]> | 2018-11-15 12:03:31 +0200 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-11-15 19:59:54 -0600 |
commit | f9fd0cf4790cb2a530e75d1a2206dbb9d8af7cb2 (patch) | |
tree | 733911a4305afaa202c2004586f8059f44f12782 /scripts | |
parent | 6339aba775ecdcaf74136479d02e3622bc1d4c0a (diff) |
i965: Fix calculation of layers array length for isl_view
Handle all cases in calculation of layers count for isl_view
taking into account texture view and image unit.
st_convert_image was taken as a reference.
When u->Layered is true the whole level is taken with respect to
image view. In other case only one layer is taken.
v3: (Józef Kucia and Ilia Mirkin)
- Rewrote patch by taking st_convert_image as a reference
- Removed now unused get_image_num_layers function
- Changed commit message
v4: (Jason Ekstrand)
- Added assert
Fixes: 5a8c8903
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107856
Signed-off-by: Danylo Piliaiev <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions