[PATCH v2 1/1] d3d8: Filter out redundant buffer discards.