<?xml version="1.0"?>
<ownershipDocument>
    <schemaVersion>X0201</schemaVersion>

    <documentType>4/A</documentType><periodOfReport>2002-01-17</periodOfReport><dateOfOriginalSubmission>2002-02-11</dateOfOriginalSubmission>
    <issuer>
        <issuerCik>0001035002</issuerCik>
        <issuerName>VALERO ENERGY CORP/TX</issuerName>
        <issuerTradingSymbol>VLO</issuerTradingSymbol></issuer><reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001015543</rptOwnerCik>
            <rptOwnerName>GREEHEY WILLIAM E</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>P.O. BOX 500</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>SAN ANTONIO</rptOwnerCity>
            <rptOwnerState>TX</rptOwnerState>
            <rptOwnerZipCode>78292-0500</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
            <reportingOwnerRelationship>
<isDirector>1</isDirector><isOfficer>1</isOfficer><isTenPercentOwner>0</isTenPercentOwner><isOther>0</isOther><officerTitle>COB and CEO</officerTitle></reportingOwnerRelationship></reportingOwner><nonDerivativeTable><nonDerivativeTransaction><securityTitle><value>Common Stock, $.01 par value (bonus shares)</value><footnoteId id="F1"/></securityTitle><transactionDate><value>2002-01-17</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>A</transactionCode><equitySwapInvolved>0</equitySwapInvolved></transactionCoding><transactionAmounts><transactionShares><value>123655</value><footnoteId id="F2"/></transactionShares><transactionPricePerShare><value>0</value></transactionPricePerShare><transactionAcquiredDisposedCode><value>A</value></transactionAcquiredDisposedCode></transactionAmounts><postTransactionAmounts><sharesOwnedFollowingTransaction><value>1056080</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></nonDerivativeTransaction><nonDerivativeTransaction><securityTitle><value>Common Stock, $.01 par value (settlement of '99 prf. shrs.)</value></securityTitle><transactionDate><value>2002-01-17</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>M</transactionCode><equitySwapInvolved>0</equitySwapInvolved></transactionCoding><transactionAmounts><transactionShares><value>20000</value><footnoteId id="F2"/></transactionShares><transactionPricePerShare><value>0</value></transactionPricePerShare><transactionAcquiredDisposedCode><value>A</value></transactionAcquiredDisposedCode></transactionAmounts><postTransactionAmounts><sharesOwnedFollowingTransaction><value>1076080</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></nonDerivativeTransaction><nonDerivativeTransaction><securityTitle><value>Common Stock, $.01 par value (settlement of '00 prf. shrs.)</value></securityTitle><transactionDate><value>2002-01-17</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>M</transactionCode><equitySwapInvolved>0</equitySwapInvolved></transactionCoding><transactionAmounts><transactionShares><value>48334</value><footnoteId id="F2"/></transactionShares><transactionPricePerShare><value>0</value></transactionPricePerShare><transactionAcquiredDisposedCode><value>A</value></transactionAcquiredDisposedCode></transactionAmounts><postTransactionAmounts><sharesOwnedFollowingTransaction><value>1124414</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></nonDerivativeTransaction><nonDerivativeTransaction><securityTitle><value>Common Stock, $.01 par value (settlement of '01 prf. shrs.)</value></securityTitle><transactionDate><value>2002-01-17</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>M</transactionCode><equitySwapInvolved>0</equitySwapInvolved></transactionCoding><transactionAmounts><transactionShares><value>50000</value><footnoteId id="F2"/></transactionShares><transactionPricePerShare><value>0</value></transactionPricePerShare><transactionAcquiredDisposedCode><value>A</value></transactionAcquiredDisposedCode></transactionAmounts><postTransactionAmounts><sharesOwnedFollowingTransaction><value>1174414</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></nonDerivativeTransaction><nonDerivativeTransaction><securityTitle><value>Common Stock, $.01 par value (exercise stock option)</value></securityTitle><transactionDate><value>2002-01-31</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>M</transactionCode><equitySwapInvolved>0</equitySwapInvolved></transactionCoding><transactionAmounts><transactionShares><value>35248</value></transactionShares><transactionPricePerShare><value>19.919</value></transactionPricePerShare><transactionAcquiredDisposedCode><value>A</value></transactionAcquiredDisposedCode></transactionAmounts><postTransactionAmounts><sharesOwnedFollowingTransaction><value>1209662</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></nonDerivativeTransaction><nonDerivativeTransaction><securityTitle><value>Common Stock, $.01 par value (shares withheld)</value></securityTitle><transactionDate><value>2002-01-31</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>F</transactionCode><equitySwapInvolved>0</equitySwapInvolved></transactionCoding><transactionAmounts><transactionShares><value>23454</value></transactionShares><transactionPricePerShare><value>45.075</value></transactionPricePerShare><transactionAcquiredDisposedCode><value>D</value></transactionAcquiredDisposedCode></transactionAmounts><postTransactionAmounts><sharesOwnedFollowingTransaction><value>1186208</value><footnoteId id="F5"/></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></nonDerivativeTransaction></nonDerivativeTable><derivativeTable><derivativeTransaction><securityTitle><value>performance shares (award)</value></securityTitle><conversionOrExercisePrice><footnoteId id="F3"/></conversionOrExercisePrice><transactionDate><value>2002-01-17</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>A</transactionCode><equitySwapInvolved>0</equitySwapInvolved></transactionCoding><transactionAmounts><transactionShares><value>77000</value></transactionShares><transactionPricePerShare><footnoteId id="F6"/></transactionPricePerShare><transactionAcquiredDisposedCode><value>A</value></transactionAcquiredDisposedCode></transactionAmounts><exerciseDate><footnoteId id="F3"/></exerciseDate><expirationDate><value>2005-01-17</value></expirationDate><underlyingSecurity><underlyingSecurityTitle><value>common stock</value></underlyingSecurityTitle><underlyingSecurityShares><footnoteId id="F3"/></underlyingSecurityShares></underlyingSecurity><postTransactionAmounts><sharesOwnedFollowingTransaction><value>77000</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></derivativeTransaction><derivativeTransaction><securityTitle><value>performance shares (settlement)</value></securityTitle><conversionOrExercisePrice><footnoteId id="F4"/></conversionOrExercisePrice><transactionDate><value>2002-01-17</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>M</transactionCode><equitySwapInvolved>0</equitySwapInvolved></transactionCoding><transactionAmounts><transactionShares><value>10000</value></transactionShares><transactionPricePerShare><footnoteId id="F6"/></transactionPricePerShare><transactionAcquiredDisposedCode><value>D</value></transactionAcquiredDisposedCode></transactionAmounts><exerciseDate><value>2002-01-17</value></exerciseDate><expirationDate><value>2002-01-17</value></expirationDate><underlyingSecurity><underlyingSecurityTitle><value>common stock</value></underlyingSecurityTitle><underlyingSecurityShares><value>20000</value></underlyingSecurityShares></underlyingSecurity><postTransactionAmounts><sharesOwnedFollowingTransaction><value>0</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></derivativeTransaction><derivativeTransaction><securityTitle><value>performance shares (settlement)</value></securityTitle><conversionOrExercisePrice><footnoteId id="F4"/></conversionOrExercisePrice><transactionDate><value>2002-01-17</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>M</transactionCode><equitySwapInvolved>0</equitySwapInvolved></transactionCoding><transactionAmounts><transactionShares><value>24167</value></transactionShares><transactionPricePerShare><footnoteId id="F6"/></transactionPricePerShare><transactionAcquiredDisposedCode><value>D</value></transactionAcquiredDisposedCode></transactionAmounts><exerciseDate><value>2002-01-17</value></exerciseDate><expirationDate><value>2003-01-17</value></expirationDate><underlyingSecurity><underlyingSecurityTitle><value>common stock</value></underlyingSecurityTitle><underlyingSecurityShares><value>48334</value></underlyingSecurityShares></underlyingSecurity><postTransactionAmounts><sharesOwnedFollowingTransaction><value>24166</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></derivativeTransaction><derivativeTransaction><securityTitle><value>performance shares (settlement)</value></securityTitle><conversionOrExercisePrice><footnoteId id="F4"/></conversionOrExercisePrice><transactionDate><value>2002-01-17</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>M</transactionCode><equitySwapInvolved>0</equitySwapInvolved></transactionCoding><transactionAmounts><transactionShares><value>25000</value></transactionShares><transactionPricePerShare><footnoteId id="F6"/></transactionPricePerShare><transactionAcquiredDisposedCode><value>D</value></transactionAcquiredDisposedCode></transactionAmounts><exerciseDate><value>2002-01-17</value></exerciseDate><expirationDate><value>2004-01-17</value></expirationDate><underlyingSecurity><underlyingSecurityTitle><value>common stock</value></underlyingSecurityTitle><underlyingSecurityShares><value>50000</value></underlyingSecurityShares></underlyingSecurity><postTransactionAmounts><sharesOwnedFollowingTransaction><value>50000</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></derivativeTransaction><derivativeTransaction><securityTitle><value>employee stock option (right to buy)</value></securityTitle><conversionOrExercisePrice><value>19.919</value></conversionOrExercisePrice><transactionDate><value>2002-01-31</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>M</transactionCode><equitySwapInvolved>0</equitySwapInvolved></transactionCoding><transactionAmounts><transactionShares><value>35248</value></transactionShares><transactionPricePerShare><footnoteId id="F6"/></transactionPricePerShare><transactionAcquiredDisposedCode><value>D</value></transactionAcquiredDisposedCode></transactionAmounts><exerciseDate><value>1995-03-06</value></exerciseDate><expirationDate><value>2002-03-06</value></expirationDate><underlyingSecurity><underlyingSecurityTitle><value>common stock</value></underlyingSecurityTitle><underlyingSecurityShares><value>35248</value></underlyingSecurityShares></underlyingSecurity><postTransactionAmounts><sharesOwnedFollowingTransaction><value>0</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></derivativeTransaction></derivativeTable><footnotes><footnote id="F1">Amending the filing to report the correct amount of bonus shares awarded (123,655 shares).  The original filing erroneously reported the amount as 123,640 shares.</footnote><footnote id="F2">The reporting person has elected to defer receipt of the bonus shares and the common shares representing settlement of his performance shares until the first day of January of the year following his retirement.</footnote><footnote id="F3">Award of performance shares under the Valero Energy Corporation 2001 Executive Stock Incentive Plan.  Any shares of common stock to be awarded in settlement of the performance shares will not be issued to the reporting person until the first day of January of the year following his retirement.  The amount of common stock to be awarded to the reporting person is determined annually over a three-year period and is payable in amounts ranging from zero to 200% of the performance shares.</footnote><footnote id="F4">Performance shares settled in 2002 were settled at 200% of the amount eligible for settlement.</footnote><footnote id="F5">The 1,186,208 amount does not include 66,195.7622 shares indirectly owned by the reporting person in benefit plans.</footnote><footnote id="F6">The derivative security did not have a purchase or sale price.</footnote></footnotes><remarks/><ownerSignature><signatureName>J. Stephen Gilbert, as Attorney-in-Fact for William E. Greehey</signatureName><signatureDate>2003-10-09</signatureDate></ownerSignature></ownershipDocument>

