[PATCH] d3d8: Improve ValidatePixelShader().