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