diff options
author | Jason Ekstrand <[email protected]> | 2016-06-10 10:45:43 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-06-22 12:26:43 -0700 |
commit | 97f12773b89a409d1368ce6b3b5badb9e75bbf53 (patch) | |
tree | 0c2bf47138979d110520d6d56abf1f48c72b8d8c /src/intel/isl/isl_surface_state.c | |
parent | bb64e666ba91ce9b1a7405a1c14d41d294062b9a (diff) |
isl/state: Allow for full 31-bit buffer texture sizes
Ivy Bridge and above can handle up to 2^31 elements for RAW buffer
surfaces.
Reviewed-by: Chad Versace <[email protected]>
Cc: "12.0" <[email protected]>
Diffstat (limited to 'src/intel/isl/isl_surface_state.c')
-rw-r--r-- | src/intel/isl/isl_surface_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/isl/isl_surface_state.c b/src/intel/isl/isl_surface_state.c index 896778c0e84..13e621f7e18 100644 --- a/src/intel/isl/isl_surface_state.c +++ b/src/intel/isl/isl_surface_state.c @@ -455,7 +455,7 @@ isl_genX(buffer_fill_state_s)(void *state, s.SurfaceHorizontalAlignment = isl_to_gen_halign[4]; s.Height = ((num_elements - 1) >> 7) & 0x3fff; s.Width = (num_elements - 1) & 0x7f; - s.Depth = ((num_elements - 1) >> 21) & 0x3f; + s.Depth = ((num_elements - 1) >> 21) & 0x3ff; s.SurfacePitch = info->stride - 1; s.NumberofMultisamples = MULTISAMPLECOUNT_1; |