It is easy to generate a PDF for this distribution, given there are only $12$ ($11$ if you don't count 6) possible states:
$$f_X(1) = f_X(2) = f_X(3) = f_X(4) = f_X(5) = \frac16$$
$$f_X(6) = 0$$
$$f_X(7) = f_X(8) = \cdots =f_X(12)= \frac16\cdot\frac16$$
Obviously there is a $\frac16$ chance of getting $1-5$ on the first roll. $f_X(6) = 0$ because the minimum sum on two dice is $7$. The numbers $7-12$ have a $\frac16$ possibility each from the second roll, which has a $\frac16$ chance of occuring. Therefore, their probabilities are all $\frac1{36}$.
Given that the player has a $0\le p\le1$ chance of rolling the second die, the probability distribution changes to:
$$f_X(1) = f_X(2) = f_X(3) = f_X(4) = f_X(5) = \frac16$$
$$f_X(6) = \frac{1-p}6$$
$$f_X(7) = f_X(8) = \cdots =f_X(12)= \frac16\cdot\frac p6$$