mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
anv/gen8: Subtract 1 from num_elements when setting up buffer surface state
This commit is contained in:
parent
91bc4e7cec
commit
e8f51fe4de
1 changed files with 3 additions and 3 deletions
|
|
@ -45,9 +45,9 @@ gen8_fill_buffer_surface_state(void *state, const struct anv_format *format,
|
|||
.SamplerL2BypassModeDisable = true,
|
||||
.RenderCacheReadWriteMode = WriteOnlyCache,
|
||||
.MemoryObjectControlState = GEN8_MOCS,
|
||||
.Height = (num_elements >> 7) & 0x3fff,
|
||||
.Width = num_elements & 0x7f,
|
||||
.Depth = (num_elements >> 21) & 0x3f,
|
||||
.Height = ((num_elements - 1) >> 7) & 0x3fff,
|
||||
.Width = (num_elements - 1) & 0x7f,
|
||||
.Depth = ((num_elements - 1) >> 21) & 0x3f,
|
||||
.SurfacePitch = stride - 1,
|
||||
.NumberofMultisamples = MULTISAMPLECOUNT_1,
|
||||
.ShaderChannelSelectRed = SCS_RED,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue