aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2017-09-24 14:50:17 -0700
committerKenneth Graunke <[email protected]>2017-10-19 10:21:45 -0700
commit113a6a639fec88631411d4a53d8e68cdebe15865 (patch)
treeeff764d0978459756df32737e379a91aeecff904 /src
parent68f69ebdccca16246bafd86e86ed80fab369009b (diff)
isl: Fix width check in isl_gen7_choose_msaa_layout.
The restriction is supposed to apply if the width *field* is >= 8192, meaning the actual width *value* is >= 8193. The code also incorrectly used == for some reason. Reviewed-by: Juan A. Suarez Romero <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/intel/isl/isl_gen7.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/isl/isl_gen7.c b/src/intel/isl/isl_gen7.c
index 24d411f51e9..c42428cba7a 100644
--- a/src/intel/isl/isl_gen7.c
+++ b/src/intel/isl/isl_gen7.c
@@ -132,7 +132,7 @@ isl_gen7_choose_msaa_layout(const struct isl_device *dev,
* is >= 8192 (meaning the actual surface width is >= 8193 pixels), this
* field must be set to MSFMT_MSS.
*/
- if (info->samples == 8 && info->width == 8192)
+ if (info->samples == 8 && info->width > 8192)
require_array = true;
/* From the Ivybridge PRM, Volume 4 Part 1 p72, SURFACE_STATE, Multisampled