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