wined3d: Optimize P8 fragment shader.