Under a gram with no prior felony conviction is a state jail felony where the law does not permit incarceration. The outcome there is probation or better.
In Texas, possession means care, custody, or control. It is not enough that you were near the drugs, or that they were found in a car you were riding in. The state has to show you knowingly or intentionally exercised care, custody, or control over the substance.
Your attorney's job is to examine whether the state actually has enough evidence to link you to it. If it is found on your person the case becomes harder, and the borrowed-clothing explanation rarely persuades anyone.
One point most people do not know: if you have under a gram of a controlled substance and no prior felony convictions, that is a state jail felony where the law does not allow incarceration. The worst available outcome is probation. It is not accurate to call it mandatory probation, because the case could still be dismissed or reduced to a misdemeanor depending on the facts, but incarceration is not on the table for a judge or a jury in that scenario.
Citation: Texas Health & Safety Code §§481.115 (Penalty Group 1 and 1-B), 481.116 (Penalty Group 2 and 2-A), 481.117 (Penalty Groups 3 and 4)
Degree and classification: Graded by Penalty Group and amount, ranging from a state jail felony up to a first-degree felony, with an enhanced range for large quantities of Penalty Group 1 substances.
Statutory language: A person commits an offense if the person knowingly or intentionally possesses a controlled substance listed in the relevant Penalty Group, unless the person obtained the substance directly from or under a valid prescription.