[PATCH v2 2/5] tests: Make ddx() and ddy() test behave correctly for shader models < 4.