Skip to content
  • Lucas Stach's avatar
    rbug: fix transmitted texture sizes · 6174cba7
    Lucas Stach authored
    The rbug wire format defines the texture size parameters to be uint32_t sized
    and uses memcpy to move the function parameters to the message structure.
    This caused totally wrong transmitted texture sizes since the height and depth
    paramterds have been changed to uint16_t in the gallium API. Fix this by doing
    an explicit conversion to the correct representation before packing into the
    wire message.
    
    Fixes: e6428092
    
     (gallium: decrease the size of pipe_resource - 64 -> 48 bytes)
    Signed-off-by: default avatarLucas Stach <l.stach@pengutronix.de>
    6174cba7