I have done the drive from Gdansk to Katowice before, with taking a break(maybe 1 hour for food and move the leges) every 4 hours, it took about 12 hours.
it's gonna be significantly shorter now as there is motorway from Gdańsk to Toruń ready now (and it's still gonna be free this summer as far as I know)