d3d8: Use resource mapping functions in d3d8_device_DrawIndexedPrimitiveUP().