Advertisement
xerpi

deko3d crash stencil depth

Sep 6th, 2022 (edited)
772
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.59 KB | None | 0 0
  1. Queue (0) entered error state, result 0
  2.   timestamp: 886809090019, result 0
  3.   info32: 13, result 0
  4.   info16: 0, result 0
  5.   status: 65535, result 0
  6.   --, result 0
  7.   GPU method error (irq 0x00100000), result 0
  8.   [b197:35e] = 0x00000018, result 0             // (35e is NVB197_DRAW_VERTEX_ARRAY)
  9.   Unknown data: 0x00000000; 0x0010, result 0
  10.  
  11. This is what Nouveau does:
  12.    BEGIN_NVC0(push, NVC0_3D(RT_ADDRESS_HIGH(0)), 9);
  13.    PUSH_DATAh(push, buf->address + offset);
  14.    PUSH_DATA (push, buf->address + offset);
  15.    PUSH_DATA (push, align(width * data_size, 0x100));
  16.    PUSH_DATA (push, height);
  17.    PUSH_DATA (push, nvc0_format_table[dst_fmt].rt);
  18.    PUSH_DATA (push, NVC0_3D_RT_TILE_MODE_LINEAR); // TileMode / NVB197_SET_COLOR_TARGET_MEMORY
  19.    PUSH_DATA (push, 1);  // ArrayMode / NVB197_SET_COLOR_TARGET_THIRD_DIMENSION
  20.    PUSH_DATA (push, 0);  // LayerStride / NVB197_SET_COLOR_TARGET_ARRAY_PITCH
  21.    PUSH_DATA (push, 0);  // BaseLayer / NVB197_SET_COLOR_TARGET_LAYER
  22.  
  23. And deko3d:
  24. return Cmd(3D, RenderTarget::Addr{id},
  25.     Iova(info.m_iova),
  26.     info.m_horizontal, info.m_vertical,
  27.     info.m_format, info.m_tileMode, info.m_arrayMode, info.m_layerStride);
  28.  
  29. ColorTargetBindCmds:
  30.   id: 0,
  31.   m_iova: 0x500580000,
  32.   m_horizontal: 5120,
  33.   m_vertical: 720,
  34.   m_format: 213,
  35.   m_tileMode: 4096,
  36.   m_arrayMode: 1,
  37.   m_layerStride: 0
  38.  
  39. (I  don't see BaseLayer being set by deko3d, but I guess its default is 0)
  40. So what deko3d does looks good to me.
  41. I think there must be some other register with a configuration that causes trouble when mixing linear color targets and blocked depth/stencil targets
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement